CN112381799A - Method and device for confirming broken strands of conducting wires, electronic equipment and computer readable storage medium - Google Patents

Method and device for confirming broken strands of conducting wires, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112381799A
CN112381799A CN202011280785.4A CN202011280785A CN112381799A CN 112381799 A CN112381799 A CN 112381799A CN 202011280785 A CN202011280785 A CN 202011280785A CN 112381799 A CN112381799 A CN 112381799A
Authority
CN
China
Prior art keywords
target
determining
wire
pixel
seed point
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.)
Granted
Application number
CN202011280785.4A
Other languages
Chinese (zh)
Other versions
CN112381799B (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.)
Zhaoqing Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Zhaoqing Power Supply Bureau of Guangdong Power Grid 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 Zhaoqing Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Zhaoqing Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority to CN202011280785.4A priority Critical patent/CN112381799B/en
Publication of CN112381799A publication Critical patent/CN112381799A/en
Application granted granted Critical
Publication of CN112381799B publication Critical patent/CN112381799B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Analysing Materials By The Use Of Radiation (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a method and a device for confirming broken strands of a lead, electronic equipment and a computer readable storage medium. The method comprises the following steps: acquiring a target image carrying a lead to be selected; determining a target seed point in a wire to be selected; determining a growth area of the target seed point in the lead to be selected according to the area growth condition to obtain a target lead in the growth area; and confirming that the target wire has strand breakage when the target dispersion of the target wire is higher than the dispersion threshold value. The invention improves the working efficiency by improving the accuracy of the identification of the broken strands of the conducting wires.

Description

Method and device for confirming broken strands of conducting wires, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of wire identification technologies, and in particular, to a method and an apparatus for confirming a broken strand of a wire, an electronic device, and a computer-readable storage medium.
Background
At present, a steel-cored aluminum strand is generally adopted for a high-voltage transmission line, local strand breakage easily occurs to the steel-cored aluminum strand at low temperature, and specifically, one or more strands of a wire formed by twisting a plurality of strands are broken and hung on the wire. If the power transmission line cannot be found and maintained in time, the power of the power transmission line can be increased rapidly, and the wire can be broken, so that the personal safety is influenced, and huge loss is caused. At present, the broken strand identification of the transmission line mainly depends on artificial discovery and reporting, and the high-voltage transmission line generally has high stringing, cannot be accurately identified manually and has low identification accuracy. For example, chinese patent publication No. CN106525859A and publication No. 2017.3.22, which is an unmanned aerial vehicle real-time detection method for detecting a strand breakage defect of a high-voltage transmission conductor, are also improved, and the strand breakage defect is detected by performing edge detection and binarization optimization after an image is acquired by the unmanned aerial vehicle, but the above method has the problem of low precision, and may generate a recognition error, and the strand breakage recognition cannot be performed quickly and accurately.
Disclosure of Invention
The invention provides a method and a device for confirming broken strands of wires, electronic equipment and a computer readable storage medium, which can quickly confirm the broken strands so as to solve the problem of low accuracy of manual identification.
The specific technical scheme is as follows:
the invention provides a method for confirming broken strands of a lead, which comprises the following steps:
acquiring a target image carrying a lead to be selected;
determining a target seed point in the wire to be selected;
determining a growth area of the target seed point in the lead to be selected according to the area growth condition to obtain a target lead in the growth area;
and confirming that the target wire has strand breakage when the target dispersion of the target wire is higher than the dispersion threshold value.
Optionally, in one embodiment, the determining the growth region of the target seed point in the lead to be selected according to the region growth condition includes:
under the condition that the stack is not empty, moving the target seed point out of the stack;
determining neighborhood pixels of the target seed point in the wire to be selected;
pushing the neighborhood pixels into a stack;
and selecting one pixel in the neighborhood pixels as a target seed point.
Optionally, in one embodiment, determining the neighborhood pixels of the target seed point in the candidate wire includes:
determining a target pixel value of a target seed point;
determining a to-be-selected pixel value of a to-be-selected pixel in a to-be-selected wire;
and under the condition that the difference value between the target pixel value and the pixel value to be selected is in a preset difference value range, taking the pixel to be selected as a neighborhood pixel.
Optionally, in one embodiment, after pushing the neighborhood pixels onto the stack, the method further includes:
setting the pixel value of the neighborhood pixel as a first pixel value;
in the case where the stack is empty, the pixel value of the neighborhood pixel is set to a second pixel value, where the second pixel value is greater than the first pixel value.
Optionally, in one embodiment, the obtaining of the target dispersion includes the following processes:
determining a target straight line in the growth area;
determining the distance value from each target point in the growth area to a target straight line, wherein the distance value of the target point above the target straight line is a positive number, and the distance value of the target point below the target straight line is a negative number;
determining an average distance value of the plurality of distance values;
the average distance value is taken as the target dispersion.
Optionally, in one embodiment, after taking the average distance value as the target dispersion, the method further includes:
determining an average dispersion of a plurality of target dispersions in the target image;
and taking the product value of the target coefficient and the average dispersion as a dispersion threshold value.
Optionally, in one embodiment, a specific process of determining the target seed point in the candidate wire is as follows:
and performing framework extraction on the lead to be selected through a rapid parallel refinement algorithm, and determining a target seed point in the lead to be selected after the framework extraction is performed.
The invention also provides a device for confirming the broken strand of the lead, which comprises:
the acquisition module is used for acquiring a target image carrying a lead to be selected;
the first determining module is used for determining a target seed point in a wire to be selected;
the second determining module is used for determining a growth area of the target seed point in the lead to be selected according to the area growth condition to obtain a target lead in the growth area;
and the confirming module is used for confirming that the target wire is broken under the condition that the target dispersion of the target wire is higher than the dispersion threshold value.
The invention also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for finishing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
and the processor is used for executing the program stored in the memory and realizing the wire strand breakage confirmation method.
The invention also provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for confirming the broken strands of the conducting wire is realized.
The invention has the beneficial effects that:
the invention provides a method for confirming broken strands of leads, which comprises the steps of obtaining a target image carrying leads to be selected, then determining a target seed point in the leads to be selected, determining a growth area of the target seed point in the leads to be selected according to an area growth condition to obtain the target leads in the growth area, and finally confirming that the target leads are broken strands under the condition that the target dispersion of the target leads is higher than a dispersion threshold value. According to the method, the target wire is determined to be in fault through the target dispersion of the target wire, and the stability of the target dispersion is recognized by adopting a machine, so that the accuracy of wire strand breakage recognition can be improved, and the working efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of a method for identifying a broken strand of a wire according to the present invention;
FIG. 2 is a schematic flow chart of a method for determining a growth area according to the present invention;
FIG. 3 is a schematic flow chart of target dispersion acquisition according to the present invention;
FIG. 4 is a schematic structural diagram of a wire strand breakage confirmation apparatus according to the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
The invention provides a method for confirming broken strands of wires, which can be applied to a server and is used for identifying the wires with broken strands.
The method for confirming the broken wire strand of the conducting wire will be described in detail with reference to the following specific embodiments, as shown in fig. 1, the following steps are specifically performed:
step 101: and acquiring a target image carrying the wire to be selected.
In this step, the server acquires a first image carrying the wire (power line), and the target image may be an aerial image taken by the aircraft. Generally, the power transmission lines are formed by arranging a plurality of lines in parallel, and the distance between every two power transmission lines is small, so that the number of the wires to be selected in the target image shot by the aircraft is multiple.
Step 102: and determining a target seed point in the wire to be selected.
In the step, the server obtains a target seed point in the wire to be selected, wherein the target seed point is a pixel point in an image area of the wire to be selected. The target seed point can be selected manually, the server obtains a result of manual selection, or can be selected by a machine, specifically, the server calculates the spectral difference in one-dimensional (horizontal and vertical) direction between pixels in the wire to be selected, selects a local minimum value of the spectral difference as the seed point to be selected, and finally selects the seed point to be selected to obtain the target seed point.
The method comprises the steps that a machine selects a target seed point, regional growth is conducted on a lead to be selected with high resolution, an experimental result is visually compared with a fractal network evolution method and a segmentation result of a KernelGraphCuts method, evaluation indexes of element internal homogeneity and element correlation of the segmentation result obtained by multiple methods are calculated respectively, and the visual comparison result shows that the target seed point selection method can provide representative target seed points for regional growth, fine segmentation results are obtained, the method also shows numerical advantages on quantitative evaluation, and the segmentation quality indexes of all wave bands are improved by more than 15%. The target seed point selection method can provide representative seed points for the region growing segmentation of the selected lead, and a fine segmentation image is generated.
Step 103: and determining a growth area of the target seed point in the lead to be selected according to the area growth condition to obtain the target lead in the growth area.
In this step, it can be seen from the above that, the number of the candidate wires is multiple, and there is no area contact between the candidate wires, so that the target seed point can select the target wire in the area where the target seed point is located through area growth, that is, select the value of the neighborhood pixel having the difference value with the pixel value of the target seed point within the preset pixel range, and combine the neighborhood pixel and the target seed point together to form the target wire, where the number of the target wire is one.
Step 104: and confirming that the target wire has strand breakage when the target dispersion of the target wire is higher than the dispersion threshold value.
In this step, after the server determines the target wire, the server determines the target dispersion of the target wire, and determines whether the target dispersion is higher than a dispersion threshold, where the dispersion refers to a deviation degree of the same-type index distribution relative to a certain central index distribution, and the smaller the dispersion, the more stable the representation is. If the server determines that the target dispersion is higher than the dispersion threshold value, the target wire is not stable, and the target wire is determined to be stranded; and if the server determines that the target dispersion is not higher than the dispersion threshold value, indicating that the target wire is stable, determining that the target wire is not stranded.
The method selects the target lead through the region growth, adopts the pixel to determine the image region of the target lead, can accurately select the target lead from a plurality of leads to be selected, improves the accuracy and comprehensiveness of the selection of the target lead, in addition, determines whether the target lead is stranded through the target dispersion of the target lead, and improves the strand breakage recognition rate through the dispersion recognition.
In this embodiment, as shown in fig. 2, determining the growth region of the target seed point in the wire to be selected according to the region growth condition includes:
step 201: in the case where the stack is not empty, the target seed point is moved out of the stack.
In the step, after the server selects the target seed point, the target seed point is pressed into the stack, and if the server determines that the stack is not empty, the target seed point is moved out of the stack.
Step 202: and determining the neighborhood pixels of the target seed point in the wire to be selected.
In the step, the target seed point is located in an image area in the lead to be selected, and the server determines neighborhood pixels of the target seed point in the image area, wherein the neighborhood pixels may be four neighborhood pixels or eight neighborhood pixels.
Optionally, determining a neighborhood pixel of the target seed point in the candidate wire includes: determining a target pixel value of a target seed point; determining a to-be-selected pixel value of a to-be-selected pixel in a to-be-selected wire; and under the condition that the difference value between the target pixel value and the pixel value to be selected is in a preset difference value range, taking the pixel to be selected as a neighborhood pixel.
In this embodiment, the server determines a target pixel value of the target seed point in an image area of the wire to be selected, and uses pixels in the image area except for the target seed point as pixels to be selected, where the pixels to be selected correspond to the pixel values to be selected, and the server determines whether a difference value between the target pixel value and the pixel values to be selected is within a preset difference value range.
If the server judges that the difference value between the target pixel value and the to-be-selected pixel value is in the preset difference value range, the difference between the target pixel value and the to-be-selected pixel value is very small, the target seed point and the to-be-selected pixel are in the same area, and the server determines that the to-be-selected pixel is a neighborhood pixel of the target seed point; if the server judges that the difference value between the target pixel value and the to-be-selected pixel value is not in the preset difference value range, the difference between the target pixel value and the to-be-selected pixel value is large, the target seed point and the to-be-selected pixel are not in the same area, and the server determines that the to-be-selected pixel is not a neighborhood pixel of the target seed point.
Step 203: the neighborhood pixels are pushed onto the stack.
In this step, the server pushes the neighborhood pixels onto the stack after determining the neighborhood pixels.
Step 204: and selecting one pixel in the neighborhood pixels as a target seed point.
In this step, the server selects one of the neighboring pixels as a target seed point, and the selection may be random or the last pixel pushed into the stack. And the server moves the reselected target seed point out of the stack, determines the neighborhood pixels of the reselected target seed point, then presses the new neighborhood pixels into the stack, selects the target seed point in the new neighborhood pixels until no neighborhood pixels can be selected, and at the moment, all the selected neighborhood pixels and the target seed points in the wire to be selected form a target wire.
As an optional implementation, after pushing the neighborhood pixels onto the stack, the method further includes: setting the pixel value of the neighborhood pixel as a first pixel value; in the case where the stack is empty, the pixel value of the neighborhood pixel is set to a second pixel value, where the second pixel value is greater than the first pixel value.
In the step, the server generates a first image, the image frame of the first image is the same as the image frame of the target image, but the gray values of all pixel points in the first image are set as first pixel values. After the server pushes the neighborhood pixels into the stack, the pixel values of the neighborhood pixels in the target image are set as first pixel values, when the stack is empty, the server sets the pixel values of all the neighborhood pixels as second pixel values, wherein the second pixel values are larger than the first pixel values. Thus in the first image the neighborhood pixels are displayed, i.e. only the target conductor is displayed in the first image. Illustratively, the first pixel value may be a gray scale value of zero and the second pixel value may be a gray scale value of 255.
As an optional implementation manner, the server further includes a pixel container, the server stores the popped target seed point into the pixel container, in case that the stack is empty, all the target seed points are stored into the pixel container, and pixels in the pixel container constitute a target wire.
In an exemplary manner, the first and second electrodes are,
(1) and defining a stack named labels for storing pixel points in the area image of the wire to be selected.
(2) And defining a pixel point container lines for storing the target seed points.
(3) And generating a first image G which is the same as the target image, and setting the gray value of all pixel points in the first image as 0.
(4) The target seed point is first pressed into labels and stored in lines.
(5) And continuously popping the target seed points when the stack is not empty, storing the popped target seed points into lines, scanning neighborhood pixels of the pixel points, if the neighborhood pixels meet the condition that the gray value is equal to 255, pressing the neighborhood pixels into the stack, and setting the gray value of the neighborhood pixels in the target image as 0.
(6) When the stack is empty, the region growing ends, and the corresponding pixel point value at G in lines is set to 255.
In the present embodiment, as shown in fig. 3, the acquisition of the target dispersion includes the following processes:
step 301: a target straight line in the growth region is determined.
The server determines a target straight line in the growing region, wherein the target straight line can be any selected one. The server establishes a planar rectangular coordinate system with the center of the growing region as an origin, and the target straight line can be represented as y-Kx + B, where y represents a dependent variable, k is a slope, x is an independent variable, and B is a y-axis intercept.
Step 302: and determining the distance value from each target point in the growth area to the target straight line.
The distance value of the target point above the target straight line is a positive number, and the distance value of the target point below the target straight line is a negative number.
The server determines each target point in the growing area, the target points comprise a target point located above the target straight line and a target point located below the target straight line, and the server calculates a distance value from each target point to the target straight line. The distance value of the target point above the target straight line is a positive number, and the distance value of the target point below the target straight line is a negative number.
The formula for calculating the distance value is:
Figure BDA0002780673410000091
wherein Dis is a distance valueiIs the distance value of point i, i is any point on the x-axis, K is the slope, xiIs the horizontal axis value of point i, B is the y-axis intercept, yiThe value of the vertical axis at point i is shown.
Step 303: an average distance value of the plurality of distance values is determined.
After the server determines all the distance values, an average distance value of the plurality of distance values is determined.
The formula for calculating the average distance value is:
Figure BDA0002780673410000101
wherein, ave _ DisjFor the average distance value, N is the number of target points, j is 1, 2 … m, is the number of target straight lines, and m is the total number of target straight lines.
Step 304: the average distance value is taken as the target dispersion.
And after determining the average distance value, the server takes the average distance value as the target dispersion.
As an optional implementation, after taking the average distance value as the target dispersion, the method further includes: determining an average dispersion of a plurality of target dispersions in the target image; and taking the product value of the target coefficient and the average dispersion as a dispersion threshold value.
The server determines an average dispersion of a plurality of target dispersions in the target image, and then takes a product value of the target coefficient and the average dispersion as a dispersion threshold value.
The calculation formula of the dispersion threshold value is as follows:
Figure BDA0002780673410000102
wherein Threshold is a dispersion Threshold.
As an optional implementation, the specific process of determining the target seed point in the candidate wire is as follows: and performing framework extraction on the lead to be selected through a rapid parallel refinement algorithm, and determining a target seed point in the lead to be selected after the framework extraction is performed.
Before determining a target seed point in a lead to be selected, the server performs framework extraction on the lead to be selected through a Zhang fast parallel thinning algorithm, and then determines the target seed point in the lead to be selected after the framework extraction.
The skeleton extraction can be performed in two steps, the first step is to mark contour points needing to be deleted, and the first rule of deletion is as follows:
①1<N(PI)<7;
②T(PI)=1;
③P2×P4×P6=0;
④P4×P6×P8=0。
wherein: pIAs contour points, N (P)I) Is PINumber of non-zero neighbors of (1), T (P)I) Is P2,P3,…,P9In order, the values of these points are the number of times that the values vary from 0 to 1.
After step 1 is completed, the remaining boundary points need to be continuously deleted in step 2, and a second rule for deletion is as follows:
①1<N(PI)<7;
②T(PI)=1;
③P2×P4×P8=0;
④P2×P6×P8=0。
and circulating the first step and the second step to perform skeleton extraction.
Based on the same technical concept, the present embodiment further provides a device for confirming a broken wire strand, as shown in fig. 4, the device includes:
the acquisition module is used for acquiring a target image carrying a lead to be selected;
the first determining module is used for determining a target seed point in a wire to be selected;
the second determining module is used for determining a growth area of the target seed point in the lead to be selected according to the area growth condition to obtain a target lead in the growth area;
and the confirming module is used for confirming that the target wire is broken under the condition that the target dispersion of the target wire is higher than the dispersion threshold value.
Optionally, the second determining module includes:
the shifting-out unit is used for shifting out the target seed point from the stack under the condition that the stack is not empty;
the determining unit is used for determining neighborhood pixels of the target seed point in the lead to be selected;
the pushing unit is used for pushing the neighborhood pixels into the stack;
and the selecting unit is used for selecting one pixel in the neighborhood pixels as a target seed point.
Optionally, the determining unit includes:
a first determining subunit, configured to determine a target pixel value of a target seed point;
the second determining subunit is used for determining a to-be-selected pixel value of a to-be-selected pixel in the to-be-selected wire;
and the sub-unit is used for taking the pixel to be selected as a neighborhood pixel under the condition that the difference value between the target pixel value and the pixel value to be selected is in a preset difference value range.
Optionally, the apparatus further comprises:
the device comprises a first setting module, a second setting module and a third setting module, wherein the first setting module is used for setting the pixel value of a neighborhood pixel as a first pixel value;
and the second setting module is used for setting the pixel value of the neighborhood pixel as a second pixel value under the condition that the stack is empty, wherein the second pixel value is larger than the first pixel value.
Optionally, the apparatus further comprises:
the third determining module is used for determining a target straight line in the growing area;
the fourth determining module is used for determining the distance value from each target point in the growing area to the target straight line, wherein the distance value of the target point above the target straight line is a positive number, and the distance value of the target point below the target straight line is a negative number;
a fifth determining module for determining an average distance value of the plurality of distance values;
the first is a module for taking the average distance value as the target dispersion.
Optionally, the apparatus further comprises:
a sixth determining module, configured to determine an average dispersion of a plurality of target dispersions in the target image;
and the second module is used for taking the product value of the target coefficient and the average dispersion as a dispersion threshold value.
Optionally, the apparatus further comprises:
the extraction module is used for carrying out skeleton extraction on the lead to be selected through a rapid parallel refinement algorithm;
and the seventh determining module is used for determining the target seed point in the lead to be selected after skeleton extraction.
Based on the same technical concept, an embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus,
a memory for storing a computer program;
and the processor is used for realizing the wire strand breakage confirmation method when executing the program stored in the memory.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
The present embodiment also provides a computer-readable storage medium, in which a computer program is stored, and when being executed by a processor, the computer program implements the steps of the method for confirming a broken wire strand.
The present embodiment also provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of wire strand breakage confirmation as in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for confirming broken strands of a wire is characterized by comprising the following processes:
acquiring a target image carrying a lead to be selected;
determining a target seed point in a wire to be selected;
determining a growth area of the target seed point in the lead to be selected according to the area growth condition to obtain a target lead in the growth area;
and confirming that the target wire has strand breakage when the target dispersion of the target wire is higher than the dispersion threshold value.
2. The method for confirming the broken strands of the conducting wires according to claim 1, wherein the step of determining the growth area of the target seed point in the conducting wires to be selected according to the area growth condition comprises the following steps:
under the condition that the stack is not empty, moving the target seed point out of the stack;
determining neighborhood pixels of the target seed point in the wire to be selected;
pushing the neighborhood pixels into a stack;
and selecting one pixel in the neighborhood pixels as a target seed point.
3. The method for confirming the broken strands of the conducting wires according to claim 2, wherein the step of determining the neighborhood pixels of the target seed point in the conducting wires to be selected comprises the following steps:
determining a target pixel value of a target seed point;
determining a to-be-selected pixel value of a to-be-selected pixel in a to-be-selected wire;
and under the condition that the difference value between the target pixel value and the pixel value to be selected is in a preset difference value range, taking the pixel to be selected as a neighborhood pixel.
4. The method of claim 2, further comprising, after pushing the neighborhood pixels into the stack:
setting the pixel value of the neighborhood pixel as a first pixel value;
in the case where the stack is empty, the pixel value of the neighborhood pixel is set to a second pixel value, where the second pixel value is greater than the first pixel value.
5. The method for confirming the broken wire strand according to claim 1, wherein the obtaining of the target dispersion comprises the following processes:
determining a target straight line in the growth area;
determining the distance value from each target point in the growth area to a target straight line, wherein the distance value of the target point above the target straight line is a positive number, and the distance value of the target point below the target straight line is a negative number;
determining an average distance value of the plurality of distance values;
the average distance value is taken as the target dispersion.
6. The method for confirming the broken wire strand according to claim 5, further comprising, after taking the average distance value as the target dispersion:
determining an average dispersion of a plurality of target dispersions in the target image;
and taking the product value of the target coefficient and the average dispersion as a dispersion threshold value.
7. The method for confirming broken strands of wire according to claim 1,
the specific process of determining the target seed point in the wire to be selected is as follows:
and performing framework extraction on the lead to be selected through a rapid parallel refinement algorithm, and determining a target seed point in the lead to be selected after the framework extraction is performed.
8. A device for confirming a strand breakage of a wire, comprising:
the acquisition module is used for acquiring a target image carrying a lead to be selected;
the first determining module is used for determining a target seed point in a wire to be selected;
the second determining module is used for determining a growth area of the target seed point in the lead to be selected according to the area growth condition to obtain a target lead in the growth area;
and the confirming module is used for confirming that the target wire is broken under the condition that the target dispersion of the target wire is higher than the dispersion threshold value.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for executing a program stored in the memory to implement the method of confirming a broken wire strand according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for confirming a broken wire strand according to any one of claims 1 to 7 is implemented.
CN202011280785.4A 2020-11-16 2020-11-16 Wire strand breakage confirmation method and device, electronic equipment and computer readable storage medium Active CN112381799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011280785.4A CN112381799B (en) 2020-11-16 2020-11-16 Wire strand breakage confirmation method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011280785.4A CN112381799B (en) 2020-11-16 2020-11-16 Wire strand breakage confirmation method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112381799A true CN112381799A (en) 2021-02-19
CN112381799B CN112381799B (en) 2024-01-23

Family

ID=74584791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011280785.4A Active CN112381799B (en) 2020-11-16 2020-11-16 Wire strand breakage confirmation method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112381799B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610761A (en) * 2021-07-06 2021-11-05 上海望友信息科技有限公司 Method and device for judging broken line, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102721889A (en) * 2012-07-02 2012-10-10 西南交通大学 Detection method of early fault of cable based on complex wavelet singularity detection
CN103163150A (en) * 2013-03-18 2013-06-19 长飞光纤光缆有限公司 Online cable surface defect detection device and online cable surface defect detection method
US20170140516A1 (en) * 2015-11-18 2017-05-18 Kla-Tencor Corporation Systems and Methods for Region-Adaptive Defect Detection
CN110852938A (en) * 2019-10-28 2020-02-28 腾讯科技(深圳)有限公司 Display picture generation method and device and storage medium
CN111260631A (en) * 2020-01-16 2020-06-09 成都地铁运营有限公司 Efficient rigid contact line structure light strip extraction method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102721889A (en) * 2012-07-02 2012-10-10 西南交通大学 Detection method of early fault of cable based on complex wavelet singularity detection
CN103163150A (en) * 2013-03-18 2013-06-19 长飞光纤光缆有限公司 Online cable surface defect detection device and online cable surface defect detection method
US20170140516A1 (en) * 2015-11-18 2017-05-18 Kla-Tencor Corporation Systems and Methods for Region-Adaptive Defect Detection
CN110852938A (en) * 2019-10-28 2020-02-28 腾讯科技(深圳)有限公司 Display picture generation method and device and storage medium
CN111260631A (en) * 2020-01-16 2020-06-09 成都地铁运营有限公司 Efficient rigid contact line structure light strip extraction method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610761A (en) * 2021-07-06 2021-11-05 上海望友信息科技有限公司 Method and device for judging broken line, electronic equipment and storage medium
CN113610761B (en) * 2021-07-06 2023-11-17 上海望友信息科技有限公司 Method and device for judging broken line, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112381799B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
CN110660066B (en) Training method of network, image processing method, network, terminal equipment and medium
US11449702B2 (en) Systems and methods for searching images
CN112949710B (en) Image clustering method and device
CN111563495B (en) Method and device for recognizing characters in image and electronic equipment
CN108182421A (en) Methods of video segmentation and device
CN109376757B (en) Multi-label classification method and system
CN109460496B (en) Method and device for realizing data display
CN113065614A (en) Training method of classification model and method for classifying target object
CN111178364A (en) Image identification method and device
CN114581419A (en) Transformer insulating sleeve defect detection method, related equipment and readable storage medium
CN112381799A (en) Method and device for confirming broken strands of conducting wires, electronic equipment and computer readable storage medium
CN114841974A (en) Nondestructive testing method and system for internal structure of fruit, electronic equipment and medium
CN117351472A (en) Tobacco leaf information detection method and device and electronic equipment
CN115601564B (en) Colloid contour detection method and system based on image recognition
CN113628256B (en) Data processing method and device
CN112819842B (en) Workpiece contour curve fitting method, device and medium suitable for workpiece quality inspection
CN111047617B (en) Rectangle recognition optimization method, device and equipment
CN113487541B (en) Insulator detection method and device
CN115656701B (en) Capacitor heating fault identification method and device based on infrared image
CN112734767B (en) Extraction method, device, equipment and medium based on pathological image tissue region
CN114037865B (en) Image processing method, apparatus, device, storage medium, and program product
CN116958138B (en) Sampling control method, system, equipment and medium for bridge detection
CN109711328B (en) Face recognition method and device and electronic equipment
CN117115568B (en) Data screening method, device, equipment and storage medium
WO2021084898A1 (en) Image management device, control method, and program

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