CN115330762A - Fuse wire breakage detection method of X-ray image - Google Patents

Fuse wire breakage detection method of X-ray image Download PDF

Info

Publication number
CN115330762A
CN115330762A CN202211245139.3A CN202211245139A CN115330762A CN 115330762 A CN115330762 A CN 115330762A CN 202211245139 A CN202211245139 A CN 202211245139A CN 115330762 A CN115330762 A CN 115330762A
Authority
CN
China
Prior art keywords
fuse
acquiring
chain code
gray level
image
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
CN202211245139.3A
Other languages
Chinese (zh)
Other versions
CN115330762B (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.)
Zongchi Electronic Technology Nantong Co ltd
Original Assignee
Zongchi Electronic Technology Nantong 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 Zongchi Electronic Technology Nantong Co ltd filed Critical Zongchi Electronic Technology Nantong Co ltd
Priority to CN202211245139.3A priority Critical patent/CN115330762B/en
Publication of CN115330762A publication Critical patent/CN115330762A/en
Application granted granted Critical
Publication of CN115330762B publication Critical patent/CN115330762B/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
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • 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
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • 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/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • 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/10116X-ray image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20036Morphological image processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to the technical field of data processing, in particular to a fuse wire breaking detection method of an X-ray image, which comprises the steps of collecting a target image and extracting a fuse wire part in the target image; acquiring the change direction of the fuse part and a corresponding chain code sequence, acquiring a periodic fitting function of the chain code sequence, and acquiring a first discrete distance based on the difference between the chain code sequence and the periodic fitting function; acquiring a gray level change sequence according to the change direction; acquiring a gray level run matrix of the fuse part in the change direction, further acquiring a gray level period fitting function, and acquiring a second discrete distance based on the difference between the gray level change sequence and the gray level period fitting function; and acquiring the rectangularity of the fuse, and then acquiring a fuse breakage detection index by combining the first discrete distance and the second discrete distance to detect the fuse breakage. The invention solves the problem that the detection is difficult because the defects are not obvious in the shooting angle problem, and greatly reduces the false detection rate of the product.

Description

Fuse wire breakage detection method of X-ray image
Technical Field
The invention relates to the technical field of data processing, in particular to a fuse wire breakage detection method of an X-ray image.
Background
Fuses are widely used in the industries of electric power, intelligent electronic equipment and the like. Because the fuse plays a role in protecting the circuit, if the problem of product defects cannot be detected in production, the fuse cannot play a role in protection and even has larger negative effects, and the common defects of glass tube fuses comprise melt, broken wires, multiple wires and the like. In addition, most of glass tube fuses (or tubular fuses) are in a packaging state, so that the internal structural defects of the fuses are difficult to accurately detect by common optical instruments, when the fusing defects of the fuses are obvious, whether the fuses break or not can be directly detected through images, but when the fuses are unqualified due to the defects in the fuses, the fuses cannot be directly detected through apparent images, so that the fuses need to be detected through nondestructive inspection, and detection equipment based on X rays is usually used.
Detecting whether the fuse in the shell has defects or not by using X-ray-based detection equipment through real-time presented images in the fuse production process so as to judge an NG product; in addition, the conventional method used for detecting the fuse is to obtain the part of a target object in the area through image segmentation and calculate and extract related characteristic parameters of the target object.
Disclosure of Invention
In order to solve the technical problem, the invention provides a fuse wire breakage detection method of an X-ray image, which adopts the following technical scheme:
one embodiment of the invention provides a fuse wire breakage detection method of an X-ray image, which comprises the following steps:
acquiring a target image of a glass tube fuse to be detected by using an X-ray camera, and extracting a fuse part in the target image;
obtaining the change direction of a fuse wire part and a corresponding chain code sequence through chain code search, obtaining a periodic fitting function of the chain code sequence by using a least square method, and obtaining a first discrete distance based on the difference between the chain code sequence and the periodic fitting function;
acquiring a gray level change sequence according to the change direction; acquiring a gray level run matrix of the fuse part in the change direction, further acquiring a gray level change curve, performing periodic function fitting on the gray level change curve to acquire a gray level period fitting function, and acquiring a second discrete distance based on the difference between the gray level change sequence and the gray level period fitting function;
and acquiring the rectangularity of the fuse according to the area of the fuse part, then acquiring a fuse breakage detection index by combining the first discrete distance and the second discrete distance, and when the fuse breakage detection index is larger than a preset threshold value, the fuse is broken.
Preferably, the method for extracting the fuse part includes:
and acquiring a gray image of the target image, and performing image segmentation on the gray image to extract the fuse part.
Preferably, the obtaining of the change direction of the fuse part and the corresponding chain code sequence through chain code search includes:
and morphologically thinning the fuse part to obtain a thinned fuse image, and searching by using a chain code with a pixel point at the lower left corner in the thinned fuse image as a starting point to obtain the chain code sequence and the change direction of the fuse.
Preferably, the method for acquiring the first discrete distance includes:
and calculating the absolute value of the difference under the independent variable corresponding to the chain code sequence and the period fitting function, wherein the sum of the absolute values of the difference corresponding to all the values of the independent variable is the first discrete distance.
Preferably, the method for acquiring the rectangular degree comprises the following steps:
and acquiring a minimum bounding rectangle of the fuse part, and calculating the ratio of the area of the fuse part to the area of the minimum bounding rectangle as the squareness.
The embodiment of the invention at least has the following beneficial effects:
the invention extracts the fuse part by utilizing edge detection, linear graying and image segmentation, and performs detailed comprehensive analysis on the fuse part according to the direction change and the gray change characteristics of the fuse part obtained by combining chain code coding with a gray run matrix, thereby solving the problem that the fuse part is difficult to detect because the defects caused by the shooting angle problem are not obvious, and greatly reducing the false detection rate of products.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating steps of a method for detecting a fuse break in an X-ray image according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an 8-neighbor chain code;
FIG. 3 is a chain code sequence diagram.
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the method for detecting fuse breakage according to an X-ray image, its specific implementation, structure, features and effects will be given below with reference to the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" refers to not necessarily the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The following describes a specific scheme of the fuse wire breakage detection method of an X-ray image in detail with reference to the accompanying drawings.
Referring to fig. 1, a flowchart illustrating steps of a method for detecting a fuse break in an X-ray image according to an embodiment of the present invention is shown, the method comprising the steps of:
and S001, collecting a target image of the glass tube fuse to be detected by using an X-ray camera, and extracting a fuse part in the target image.
The method comprises the following specific steps:
an X-ray camera is used for collecting an image of a glass tube fuse to be detected as a target image, a gray image of the target image is obtained, and the gray image is subjected to image segmentation to extract a fuse part.
Performing image preprocessing operations including image denoising and filtering and image gray level enhancement on the obtained target image to obtain a result image, and performing result image segmentation to obtain a binary image
Figure DEST_PATH_IMAGE001
The gray value of the middle part of the glass tube fuse is higher, the gray values of the upper metal cap part and the lower metal cap part in the image are lower, the position and the distribution direction of the glass tube fuse to be detected in the image are obtained by edge detection, and the middle part of the glass tube fuse and the metal cap parts at the upper end and the lower end of the glass tube fuse are respectively subjected to linear graying and image segmentation operation to obtain the fuse part.
Step S002, obtaining the changing direction of the fuse portion and the corresponding chain code sequence by chain code search, obtaining a period fitting function of the chain code sequence by using a least square method, and obtaining a first discrete distance based on a difference between the chain code sequence and the period fitting function.
The fuse wire part in the glass tube fuse wire is a spiral column solid similar to a spring, the fuse wire in an image acquired by an X-ray camera has periodic change in the change direction and gray level distribution, angle change information can be acquired by using chain code coding according to the characteristics of the periodic change to guide the stepping of a gray level run matrix, and the acquired gray level information and the characteristics such as the length of the run are specifically analyzed to detect the broken wire defect.
The method comprises the following specific steps:
the gray level run matrix is a counting matrix capable of acquiring texture information in a target image, the calculation direction angle of the counting matrix is single and unchanged, the generally selected angle is 0 degree, 45 degrees, 90 degrees, 135 degrees and the like, so when the gray level run matrix is used for detecting fuses and obtaining gray level change characteristics according to the distribution direction of the fuses, firstly, a chain code is used for coding a chain code to guide the gray level change characteristics, wherein the chain code is used for representing a boundary line formed by sequentially connected straight line segments with specified length and direction, the representing method is based on the connection of the 4 directions or the 8 directions of the line segments, and the direction of each line segment is coded by using a digital numbering method.
And morphologically thinning the fuse part to obtain a thinned fuse image, and searching by using a chain code with the pixel point at the lower left corner in the thinned fuse image as a starting point to obtain a chain code sequence and the change direction of the fuse.
Since the changing direction of the fuse is not more than four directions, in order to avoid losing information, 8-adjacent chain codes connected in the 8 directions are adopted in the embodiment of the present invention, the 8-adjacent chain codes are shown in fig. 2, and the distribution direction information between the continuous pixels to be detected, i.e., the chain code sequence, can be obtained by using the 8-chain codes, as shown in fig. 3, which is a chain code sequence diagram.
For fuse part obtained in fuse image of glass tube
Figure 301519DEST_PATH_IMAGE002
The morphology is used for thinning operation, so that the region with a certain area represents the region by a curve, the direction change condition of the region is conveniently obtained by 8-chain code coding, and the partially thinned image is obtained
Figure DEST_PATH_IMAGE003
Taking the pixel point at the lower left corner as the search starting point of the 8-chain code, and searching the 8-chain code of the image of the fuse part to obtain a corresponding chain code sequence
Figure 732631DEST_PATH_IMAGE004
And recording pixel point position information
Figure DEST_PATH_IMAGE005
Chain code sequence
Figure 816125DEST_PATH_IMAGE004
The expression of (a) is:
Figure DEST_PATH_IMAGE007
wherein the content of the first and second substances,
Figure 847535DEST_PATH_IMAGE008
is a statistical calculation condition of the formula, which indicates that the formula belongs to the fuse part
Figure 815622DEST_PATH_IMAGE003
Pixel point of
Figure DEST_PATH_IMAGE009
Calculating;
Figure 616088DEST_PATH_IMAGE010
as the position of a pixel in the image, i.e. first
Figure DEST_PATH_IMAGE011
Line and first
Figure 805236DEST_PATH_IMAGE012
Columns; symbol
Figure DEST_PATH_IMAGE013
Representing a chain code search performed on the refined fuse portion in the image;
Figure 543516DEST_PATH_IMAGE014
the ordinal numbers representing the terms in the resulting chain code sequence are also the horizontal coordinate axes of the corresponding curves.
It should be noted that, in the following description,
Figure 564562DEST_PATH_IMAGE004
value range of
Figure DEST_PATH_IMAGE015
The formula obtains the change information of the distribution direction of the pixel points of the fuse part in the image through chain code calculation, and can provide direction conversion guide for the subsequent gray level run matrix.
Because of the geometrical characteristics of the spiral of the fuse, the corresponding image and the relevant characteristic curve have periodicity, the periodic function fitting is carried out on the curve obtained by the least square method, and the obtained periodic fitting function is as follows:
Figure DEST_PATH_IMAGE017
wherein the parameters
Figure 235846DEST_PATH_IMAGE018
Figure DEST_PATH_IMAGE019
Figure 848093DEST_PATH_IMAGE020
Figure DEST_PATH_IMAGE021
Figure 339248DEST_PATH_IMAGE022
Obtaining a specific numerical value for a parameter to be solved through curve fitting;
Figure DEST_PATH_IMAGE023
corresponding to a dispersion curve
Figure 466383DEST_PATH_IMAGE014
Is the transverse axis of the periodic function.
And calculating the difference absolute values of the chain code sequence and the period fitting function under the corresponding independent variables, wherein the sum of the difference absolute values corresponding to all values of the independent variables is the first discrete distance.
The first discrete distance is calculated by the formula:
Figure DEST_PATH_IMAGE025
wherein the content of the first and second substances,
Figure 975862DEST_PATH_IMAGE026
a first discrete distance is represented as a first discrete distance,
Figure DEST_PATH_IMAGE027
represents a chain code sequence;
Figure 978584DEST_PATH_IMAGE028
representing a periodic fitting function corresponding to the chain code sequence;
Figure 675145DEST_PATH_IMAGE014
and expressing the ordinal number of the corresponding pixel point in the function.
The formula performs periodic function fitting on a chain code sequence consisting of discrete points, and then calculates
Figure 772414DEST_PATH_IMAGE027
And
Figure 621552DEST_PATH_IMAGE028
the difference between the points in the two curves. The periodic function curve is more similar to the overall and most fitting characteristics during fitting, namely the obtained curve is a change rule which is originally existed according to the overall periodic change, and the formula utilizes the difference between the theoretical and actual curves of the fitting curve to obtain a few partial points which are locally changed without conforming to the theoretical rule in the actual curve, namely points which deviate from the abnormal points in the fuse.
Step S003, obtaining a gray level change sequence according to the change direction; and acquiring a gray level run matrix of the fuse part in the change direction, further acquiring a gray level change curve, performing periodic function fitting on the gray level change curve to acquire a gray level period fitting function, and acquiring a second discrete distance based on the difference between the gray level change sequence and the gray level period fitting function.
The method comprises the following specific steps:
recording the gray scale run matrix as
Figure DEST_PATH_IMAGE029
In the middle interval
Figure 310022DEST_PATH_IMAGE030
The gray scale interval in the fuse part image, all values of which are gray scale levels in the image,
Figure DEST_PATH_IMAGE031
indicating the length traveled by the gray scale run matrix in that interval, i.e. the portion in which there is
Figure 41349DEST_PATH_IMAGE031
Continuous in the interval of gray value
Figure 942309DEST_PATH_IMAGE030
The pixel point of (a) appears,
Figure 377445DEST_PATH_IMAGE032
indicating the direction of the calculation.
Calculating and acquiring gray level change sequence by combining direction information of pixel point position change obtained by 8-chain code coding
Figure DEST_PATH_IMAGE033
And recording the gray value of each pixel point during the wandering to obtain a gray change sequence:
Figure DEST_PATH_IMAGE035
wherein the content of the first and second substances,
Figure 784287DEST_PATH_IMAGE010
is the position of the pixel point in the image, i.e. the first
Figure 189860DEST_PATH_IMAGE011
Line and first
Figure 894511DEST_PATH_IMAGE012
Columns; symbol
Figure 452663DEST_PATH_IMAGE036
Gray run matrix calculation representing the thinned fuse part in the image;
Figure 951777DEST_PATH_IMAGE014
representing the ordinal number walked by the gray scale run matrix.
Figure DEST_PATH_IMAGE037
Is of a pair type
Figure 126538DEST_PATH_IMAGE033
Middle parameter
Figure 369300DEST_PATH_IMAGE032
The angle of the gray level run-length matrix in the image during statistical calculation is not fixed singly, but moves along with the direction pointed by the chain code sequence, that is:
Figure 31226DEST_PATH_IMAGE038
when the temperature of the water is higher than the set temperature,
Figure DEST_PATH_IMAGE039
i.e., 0 °;
Figure 980203DEST_PATH_IMAGE040
when the temperature of the water is higher than the set temperature,
Figure DEST_PATH_IMAGE041
i.e. 45 °;
Figure 891527DEST_PATH_IMAGE042
when the temperature of the water is higher than the set temperature,
Figure DEST_PATH_IMAGE043
namely 90 degrees;
Figure 219871DEST_PATH_IMAGE044
when the temperature of the water is higher than the set temperature,
Figure DEST_PATH_IMAGE045
i.e. 135 °;
Figure 267461DEST_PATH_IMAGE046
when the temperature of the water is higher than the set temperature,
Figure DEST_PATH_IMAGE047
i.e., 180 °;
Figure 655849DEST_PATH_IMAGE048
when the temperature of the water is higher than the set temperature,
Figure DEST_PATH_IMAGE049
i.e., 225 °;
Figure 70781DEST_PATH_IMAGE050
when the temperature of the water is higher than the set temperature,
Figure DEST_PATH_IMAGE051
i.e., 270 °;
Figure 452083DEST_PATH_IMAGE052
when the temperature of the water is higher than the set temperature,
Figure DEST_PATH_IMAGE053
i.e. 315.
According to the angle corresponding to the chain code value, the direction guidance of the gray level run matrix can be obtained. The gray scale change curve of the fuse is obtained through statistics by the method, the periodic change of the fuse is analyzed according to the curve, and the non-periodic points in the fuse are calculated.
Similarly, the least square method is utilized to carry out periodic function fitting on the obtained gray scale change curve to obtain a gray scale period fitting curve
Figure 633141DEST_PATH_IMAGE054
Figure 644960DEST_PATH_IMAGE056
In the formula, parameter
Figure DEST_PATH_IMAGE057
Figure 829079DEST_PATH_IMAGE058
Figure DEST_PATH_IMAGE059
Figure 279652DEST_PATH_IMAGE060
Figure 255829DEST_PATH_IMAGE022
Obtaining a specific numerical value for a parameter to be solved through curve fitting;
Figure 704128DEST_PATH_IMAGE023
corresponding gray scale change curve
Figure 546182DEST_PATH_IMAGE033
Is
Figure 220352DEST_PATH_IMAGE014
Is the transverse axis of the periodic function.
Obtaining a second discrete distance based on a difference between the gray scale change sequence and the gray scale period fitting function:
Figure 565883DEST_PATH_IMAGE062
wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE063
a second discrete distance is represented that is,
Figure 732553DEST_PATH_IMAGE033
is a gray scale change sequence;
Figure 530745DEST_PATH_IMAGE064
fitting a curve for a gray scale period corresponding to the gray scale change curve;
Figure 526383DEST_PATH_IMAGE014
is the ordinal number of the corresponding pixel in the curve.
The same way as the calculation of the first discrete distance, the formula of the second discrete distance reflects the difference between the theoretical curve obtained by fitting and the change curve formed by the discrete points in practice, and the difference is calculated
Figure 460841DEST_PATH_IMAGE033
And with
Figure 267254DEST_PATH_IMAGE064
The magnitude of the difference between the points in the two curves.
And step S004, the rectangularity of the fuse is obtained according to the area of the fuse part, then the first discrete distance and the second discrete distance are combined to obtain a fuse breakage detection index, and when the fuse breakage detection index is larger than a preset threshold value, fuse breakage occurs.
The method comprises the following specific steps:
and acquiring the minimum bounding rectangle of the fuse part, and calculating the ratio of the area of the fuse part to the area of the minimum bounding rectangle as the squareness.
Calculating the squareness of the fuse
Figure DEST_PATH_IMAGE065
Figure DEST_PATH_IMAGE067
In the formula (I), the compound is shown in the specification,
Figure 631370DEST_PATH_IMAGE068
eliminating the area size of a narrow blank area in a fuse after closing operation of the fuse part in the image;
Figure DEST_PATH_IMAGE069
is the minimum circumscribed rectangular area of the fuse.
The rectangle degree calculated by the formula reflects the appearance characteristics of the fuse part in the image, namely whether the appearance outline of the fuse part is excessively bent and deformed or not, when the appearance outline is deformed, the rectangle degree is reduced, and the fuse possibly has certain dislocation to generate the fuse breaking defect; conversely, the following comprehensive analysis may not be required in combination with the above-obtained features.
Obtaining a first discrete distance according to the chain code change and gray change characteristics
Figure 430699DEST_PATH_IMAGE070
A second discrete distance
Figure DEST_PATH_IMAGE071
And the rectangle degree can detect the broken wire condition of the glass tube fuse under X-ray, and the broken wire detection index is obtained
Figure 29783DEST_PATH_IMAGE072
Figure 990786DEST_PATH_IMAGE074
The broken wire detection index obtained by the formula reflects the broken wire condition of the fuse in the image when
Figure DEST_PATH_IMAGE075
The fuse wire in the glass tube fuse is determined to be broken, i.e. the preset threshold value is 0.63 in the embodiment of the invention.
In summary, in the embodiment of the present invention, an X-ray camera is used to collect a target image of a glass tube fuse to be detected, and a fuse part in the target image is extracted; obtaining the change direction of the fuse part and a corresponding chain code sequence through chain code search, obtaining a periodic fitting function of the chain code sequence by using a least square method, and obtaining a first discrete distance based on the difference between the chain code sequence and the periodic fitting function; acquiring a gray level change sequence according to the change direction; acquiring a gray level run matrix of the fuse part in the change direction, further acquiring a gray level change curve, performing periodic function fitting on the gray level change curve to acquire a gray level period fitting function, and acquiring a second discrete distance based on the difference between the gray level change sequence and the gray level period fitting function; and acquiring the rectangularity of the fuse according to the area of the fuse part, and then acquiring a fuse breakage detection index by combining the first discrete distance and the second discrete distance, wherein when the fuse breakage detection index is larger than a preset threshold, the fuse is broken. The embodiment of the invention solves the problem that the detection is difficult because the defects caused by the shooting angle problem are not obvious, and greatly reduces the false detection rate of the product.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And that specific embodiments have been described above. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts in the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; modifications of the technical solutions described in the foregoing embodiments, or equivalents of some technical features thereof, are not essential to the spirit of the technical solutions of the embodiments of the present application, and are all included in the scope of the present application.

Claims (5)

1.X ray image fuse breakage detection method, comprising the steps of:
acquiring a target image of a glass tube fuse to be detected by using an X-ray camera, and extracting a fuse part in the target image;
obtaining a change direction of a fuse part and a corresponding chain code sequence through chain code search, obtaining a periodic fitting function of the chain code sequence by using a least square method, and obtaining a first discrete distance based on a difference between the chain code sequence and the periodic fitting function;
acquiring a gray level change sequence according to the change direction; acquiring a gray level run matrix of the fuse part in the change direction, further acquiring a gray level change curve, performing periodic function fitting on the gray level change curve to acquire a gray level period fitting function, and acquiring a second discrete distance based on the difference between the gray level change sequence and the gray level period fitting function;
and acquiring the rectangularity of the fuse according to the area of the fuse part, then acquiring a fuse breakage detection index by combining the first discrete distance and the second discrete distance, and when the fuse breakage detection index is larger than a preset threshold value, the fuse is broken.
2. The method for detecting fuse disconnection in an X-ray image according to claim 1, wherein the method for extracting the fuse portion comprises:
and acquiring a gray image of the target image, and performing image segmentation on the gray image to extract the fuse part.
3. The method for detecting fuse breakage according to claim 1, wherein the obtaining of the change direction of the fuse portion and the corresponding chain code sequence by chain code search includes:
and morphologically thinning the fuse wire part to obtain a thinned fuse wire image, and searching by using a chain code by taking the pixel point at the lower left corner in the thinned fuse wire image as a starting point to obtain the chain code sequence and the change direction of the fuse wire.
4. The method for detecting fuse breakage according to an X-ray image, according to claim 1, wherein the first discrete distance is obtained by:
and calculating the absolute value of the difference under the independent variable corresponding to the chain code sequence and the period fitting function, wherein the sum of the absolute values of the difference corresponding to all the values of the independent variable is the first discrete distance.
5. The method for detecting fuse breakage according to claim 1, wherein the rectangle degree is obtained by:
and acquiring a minimum bounding rectangle of the fuse part, and calculating the ratio of the area of the fuse part to the area of the minimum bounding rectangle as the rectangularity.
CN202211245139.3A 2022-10-12 2022-10-12 Fuse wire breakage detection method of X-ray image Active CN115330762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211245139.3A CN115330762B (en) 2022-10-12 2022-10-12 Fuse wire breakage detection method of X-ray image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211245139.3A CN115330762B (en) 2022-10-12 2022-10-12 Fuse wire breakage detection method of X-ray image

Publications (2)

Publication Number Publication Date
CN115330762A true CN115330762A (en) 2022-11-11
CN115330762B CN115330762B (en) 2023-03-24

Family

ID=83914853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211245139.3A Active CN115330762B (en) 2022-10-12 2022-10-12 Fuse wire breakage detection method of X-ray image

Country Status (1)

Country Link
CN (1) CN115330762B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116823808A (en) * 2023-08-23 2023-09-29 青岛豪迈电缆集团有限公司 Intelligent detection method for cable stranded wire based on machine vision

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114841940A (en) * 2022-04-24 2022-08-02 南通金丝楠膜材料有限公司 Injection molding silver thread defect detection method and system based on gray level run matrix
CN114998345A (en) * 2022-08-04 2022-09-02 南通金丝楠膜材料有限公司 Injection molding silver thread defect detection method and system based on gray level run matrix
CN115035110A (en) * 2022-08-10 2022-09-09 南通永安纺织有限公司 Yarn hairiness quantitative detection method based on pit cutting and chain code tracking
CN115115641A (en) * 2022-08-30 2022-09-27 江苏布罗信息技术有限公司 Pupil image segmentation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114841940A (en) * 2022-04-24 2022-08-02 南通金丝楠膜材料有限公司 Injection molding silver thread defect detection method and system based on gray level run matrix
CN114998345A (en) * 2022-08-04 2022-09-02 南通金丝楠膜材料有限公司 Injection molding silver thread defect detection method and system based on gray level run matrix
CN115035110A (en) * 2022-08-10 2022-09-09 南通永安纺织有限公司 Yarn hairiness quantitative detection method based on pit cutting and chain code tracking
CN115115641A (en) * 2022-08-30 2022-09-27 江苏布罗信息技术有限公司 Pupil image segmentation method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116823808A (en) * 2023-08-23 2023-09-29 青岛豪迈电缆集团有限公司 Intelligent detection method for cable stranded wire based on machine vision
CN116823808B (en) * 2023-08-23 2023-11-17 青岛豪迈电缆集团有限公司 Intelligent detection method for cable stranded wire based on machine vision

Also Published As

Publication number Publication date
CN115330762B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN110443822B (en) Semantic edge-assisted high-resolution remote sensing target fine extraction method
CN109559324B (en) Target contour detection method in linear array image
CN114764790B (en) Gear broken tooth detection method based on Hough circle detection
CN110321933B (en) Fault identification method and device based on deep learning
CN111354026B (en) Improved train image accurate registration method and system based on SURF (speeded up robust features)
CN111612817A (en) Target tracking method based on depth feature adaptive fusion and context information
CN115330762B (en) Fuse wire breakage detection method of X-ray image
CN116862910B (en) Visual detection method based on automatic cutting production
CN116721107B (en) Intelligent monitoring system for cable production quality
CN111523535B (en) Circle-like object recognition counting detection algorithm based on machine vision and deep learning
CN116385472B (en) Hardware stamping part deburring effect evaluation method
CN116704209B (en) Quick flange contour extraction method and system
CN116205907A (en) Decorative plate defect detection method based on machine vision
CN115471476A (en) Method, device, equipment and medium for detecting component defects
CN115861987A (en) Intelligent electric power fitting defect identification method for on-line monitoring of power transmission line
CN114998341A (en) Gear defect detection method and system based on template matching
CN117274251B (en) Tablet quality detection method in medicine production process based on image data
CN116233479A (en) Live broadcast information content auditing system and method based on data processing
CN114529803A (en) Pointer instrument identification enhancement detection method
CN113643245A (en) Screen defect measuring method and device and computer readable storage medium
CN114092542A (en) Bolt measuring method and system based on two-dimensional vision
CN117422705B (en) Connector terminal quality detection method based on image vision
CN114322793B (en) Workpiece size measuring method and device based on global segmentation network and storage medium
CN110956130A (en) Method and system for four-level face detection and key point regression
CN116403204B (en) Intelligent reading method for round pointer meter

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