CN105956613A - Industrial x ray weld image circular, linear defect classification method - Google Patents
Industrial x ray weld image circular, linear defect classification method Download PDFInfo
- Publication number
- CN105956613A CN105956613A CN201610261096.6A CN201610261096A CN105956613A CN 105956613 A CN105956613 A CN 105956613A CN 201610261096 A CN201610261096 A CN 201610261096A CN 105956613 A CN105956613 A CN 105956613A
- Authority
- CN
- China
- Prior art keywords
- defect
- image
- vector
- sample
- calculated
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
- G06F18/2413—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on distances to training or reference patterns
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Analysing Materials By The Use Of Radiation (AREA)
Abstract
The invention discloses an industrial x ray weld image circular, linear defect classification method. N suspected local images of typical circular defects and linear defects are selected, and are normalized into a size of h*w, and a training sample matrix is constructed. An average defect image and a defect difference image vector of every sample defect image are calculated. Member covariance matrix calculating characteristics are used to form a characteristic space, and every sample defect difference image vector is projected to a defect characteristic space, and by defining and calculating the defect characteristic space, defect local image filtering processing, defect local image segmenting processing, and other processing are prevented. For the circular and linear defect classification problem, the process of projecting the sample defect difference image vectors to the defect characteristic space is simplified to be the simple vector multiplication, and therefore identification precision is improved, calculation complexity is reduced, and identification real-time performance is improved.
Description
Technical field
The present invention relates to technical field of image processing, divide particularly to a kind of industrial x-ray submerged-arc welding seam image deflects
Class method, classifies especially for circular, linear discontinuities.
Background technology
Submerged arc welding technique is widely used in the manufacture of petrochemical industry steel pipe and pressure vessel, and welding quality is to ensure that steel
The basis of the national economy critical facility safe operations such as pipe and pressure vessel and basic guarantee.Leave over discontinuities (defect) in welds can lead
Cause rupturing and blast of pipeline and pressure vessel.Therefore the identification of submerged-arc welding seam defects detection is machinery, metallurgy, petrochemical industry etc.
The link that industry device is essential and particularly important in manufacturing.
The detection of butt welded seam defect is to be come in fact by the method for Non-Destructive Testing (Non Destructive Testing, NDT)
Existing.In various lossless detection methods, defects detection based on x-ray weld image is mostly important, and has obtained extensively
The method of application.It is currently based on the automatic detection algorithm of x-ray weld image to need to be filtered, split, at the image such as judgement
Reason.The result being partitioned into is often all kinds of defect and noise depositing, and the geometry and the textural characteristics value that calculate are difficult to accurately, thus
Defect type is caused accurately to judge.In actual production, the impact of dissimilar defect welding quality is different.Crackle, not
Through welding (linear discontinuities) is bigger than the harm of the defects such as pore (circular flaw) welding quality.Judge defect fast and accurately
Linear or circle to safety in production important in inhibiting.
But current detection algorithm mostly can only distinguish defect and noise, to the classification of defect then due to carrying out image threshold segmentation
The reasons such as error, or the time of calculating is longer, or computational accuracy is not enough.Currently also lack a kind of strong adaptability and threshold value chooses nothing
Close and the calculating time can meet the x-ray weld image circle of requirement of real-time, linear discontinuities sorting technique.
Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, object of the present invention is to provide a kind of industrial x-ray weld seam figure
As circular, linear discontinuities sorting technique, realized the Fast Classification of defect by dimension-reduction treatment image, there is calculating real-time high,
And without choosing the feature of segmentation threshold.
In order to achieve the above object, the technical scheme is that and be achieved in that:
A kind of industrial x-ray weld image is circular, linear discontinuities sorting technique, comprises the following steps:
1) select typical circular defect and each n of the doubtful topography of linear discontinuities individual, be normalized to h × w size, and
Build training sample matrix
Wherein, f is image after normalization, the column vector generated by row major principle;
2) average defect figure is calculated
3) the defect error image vector of each sample defect image is calculated:
di=fi-ψ, i=1 ... 2n;
4) component covariance matrixA=(d1,…,d2n);
5) Jacobi method is utilized to calculate the eigenvalue (λ of C1..., λ2n) and characteristic vector (u1,…,u2n), form feature empty
Between, according to the contribution rate of eigenvalueChoose front p maximal eigenvector and characteristic of correspondence vector forms characteristics defect space
W=(u1,u2,…,up);
Wherein, contribution rateP the maximum eigenvalue sum referring to choose and all eigenvalues and ratio, it may be assumed that
Take Δ > 0.9, even if the projection that training sample is on front p maximal eigenvector collection has more than the energy of 90%;
6) by each sample defect error image vector projection to characteristics defect space, σ is calculatedi=WT·di, i=1,
2…2n;
7) principle pressing row major after defect image normalization to be identified is constituted column vector κ;
8) difference of κ Yu ψ is projected to feature space, obtain its vector representation σ '=WT·(κ-ψ;
9) σ ' and σ is calculatediBetween Euclidean distanceI=1,2 ... 2n.
10) ε of minimum is chosenmin=min{ εi, i=1,2 ..., 2n, determine and be designated as j under it;
11) type of sample j is the type of defect image to be detected.
The present invention is by definition and asks for defect characteristic space, it is to avoid the process such as the filtering of defect topography, segmentation.Right
For circle and line defect classification problem, p=1 during Δ=0.98, now W is vector.Sample defect error image vector di
The process simplification projecting to defect characteristic space is a simple vector multiplication, and amount of calculation is reduced to h × w simple multiplication and adds
Method.As a example by image size normalization is to 10 × 10, the amount of calculation in the projection properties space of single width defect image is taken advantage of for only 100 times
Method sum, greatly reduces computation complexity, improves the accuracy of calculating.
Accompanying drawing explanation
Figure 1A is embodiment one image to be detected schematic diagram.
Figure 1B is embodiment two image to be detected schematic diagram.
Fig. 1 C is 60 circular flaw sample graphs of embodiment one, two.
Fig. 1 D is 60 bracing cable defect sample figures of embodiment one, two.
Fig. 2 A is embodiment three image to be detected schematic diagram.
Fig. 2 B is embodiment four image to be detected schematic diagram.
Fig. 2 C is 40 circular flaw sample graphs of embodiment three, four.
Fig. 2 D is 40 bracing cable defect sample figures of embodiment three, four.
Detailed description of the invention
Below in conjunction with instantiation, the present invention done narration in detail.
Embodiment one
The present embodiment image is circular, linear discontinuities sorting technique, comprises the following steps:
1) image to be detected is for referring to Figure 1A, 32 gray level images, and 15 × 14, randomly choose typical circular defect picture 60
Opening as shown in Figure 1 C, all pictures as shown in figure ip, are normalized to 10 × 10 sizes, and build instruction by 60, linear discontinuities picture
Practice sample matrix
Wherein, f is image after normalization, the column vector generated by row major principle.
2) average defect figure is calculated
3) the defect error image vector of each sample defect image is calculated
di=fi-ψ, i=1 ... 120;
4) component covariance matrixA=(d1,…,d120);
5) Jacobi method is utilized to calculate the eigenvalue (λ of C1..., λ120) and characteristic vector (u1,…,u120), form feature empty
Between.Contribution rate according to eigenvalueChoose front p maximal eigenvector and characteristic of correspondence vector forms characteristics defect sky
Between W=(u1,…,up)。
Wherein, contribution rateP the maximum eigenvalue sum referring to choose and all eigenvalues and ratio, it may be assumed that
Take Δ=0.98, now p=1, therefore characteristics defect space W=(u1);
6) by each sample defect error image vector projection to characteristics defect space, calculate: σi=WT·di, i=
1,…120;
7) principle pressing row major after defect image normalization to be identified is constituted column vector κ;
8) difference of κ Yu ψ is projected to feature space, obtain its vector representation σ '=WT·(κ-ψ);
9) σ ' and σ is calculatediBetween Euclidean distanceI=1,2 ... 120;
10) ε of minimum is chosenmin=min{ εi, i=1,2 ..., 120, solve ε49=0.210092176198225;
11) with minimum ε49Corresponding σ49Type is circular flaw, and the type of defect image to be detected is circular flaw.
Embodiment two
The present embodiment image is circular, linear discontinuities sorting technique, comprises the following steps:
1) image to be detected is for referring to Figure 1B, 32 gray level images, and 11 × 13, randomly choose typical circular defect picture 60
Opening as shown in Figure 1 C, all pictures as shown in figure ip, are normalized to 10 × 10 sizes, and build instruction by 60, linear discontinuities picture
Practice sample matrix
Wherein, f is image after normalization, the column vector generated by row major principle.
2) average defect figure is calculated
3) the defect error image vector of each sample defect image is calculated;
di=fi-ψ, i=1 ... 120
4) component covariance matrixA=(d1,…,d120);
5) Jacobi method is utilized to calculate the eigenvalue (λ of C1..., λ120) and characteristic vector (u1,…,u120), form feature empty
Between.Contribution rate according to eigenvalueChoose front p maximal eigenvector and characteristic of correspondence vector forms characteristics defect space
W=(u1,…,up);
Wherein, contribution rateP the maximum eigenvalue sum referring to choose and all eigenvalues and ratio, it may be assumed that
Take Δ=0.98, now p=1, therefore characteristics defect space W=(u1);
6) by each sample defect error image vector projection to characteristics defect space, have: σi=WT·di, i=1 ...
120;
7) principle pressing row major after defect image normalization to be identified is constituted column vector κ;
8) difference of κ Yu ψ is projected to feature space, obtain its vector representation σ '=WT·(κ-ψ);
9) σ ' and σ is calculatediBetween Euclidean distanceI=1,2 ... 120;
10) ε of minimum is chosenmin=min{ εi, i=1,2 ..., 120 solve ε70=0.0335504827912146;
11) with minimum ε70Corresponding σ70Type is line defect, and the type of defect image to be detected is line defect.
Embodiment three
The present embodiment image is circular, linear discontinuities sorting technique, comprises the following steps:
1) image to be detected is for referring to Fig. 2 A, 32 gray level images, and 14 × 13, randomly choose typical circular defect picture 40
Opening as shown in Figure 2 C, all pictures as shown in Figure 2 D, are normalized to 10 × 10 sizes, and build instruction by 40, linear discontinuities picture
Practice sample matrix
Wherein, f is image after normalization, the column vector generated by row major principle;
2) average defect figure is calculated
3) the defect error image vector of each sample defect image is calculated
di=fi-ψ, i=1 ... 80;
4) component covariance matrixA=(d1,…,d80);
5) Jacobi method is utilized to calculate the eigenvalue (λ of C1..., λ80) and characteristic vector (u1,…,u80), form feature empty
Between;Contribution rate according to eigenvalueChoose front p maximal eigenvector and characteristic of correspondence vector forms characteristics defect space
W=(u1,…,up);
Wherein, contribution rateP the maximum eigenvalue sum referring to choose and all eigenvalues and ratio, it may be assumed that
Take Δ=0.98, now p=1, therefore characteristics defect space W=(u1);
6) by each sample defect error image vector projection to characteristics defect space, have: σi=WT·di, i=1 ...
80;
7) principle pressing row major after defect image normalization to be identified is constituted column vector κ;
8) difference of κ Yu ψ is projected to feature space, obtain its vector representation σ '=WT·(κ-ψ);
9) σ ' and σ is calculatediBetween Euclidean distanceI=1,2 ... 80;
10) ε of minimum is chosenmin=min{ εi, i=1,2 ..., 80, solve ε28=0.227217431379563;
11) with minimum ε28Corresponding σ28Type is circular defect, and the type of defect image to be detected is circular flaw.
Embodiment four
The present embodiment image is circular, linear discontinuities sorting technique, comprises the following steps:
1) image to be detected is for referring to Fig. 2 B, 32 gray level images, and 22 × 41, randomly choose typical circular defect picture 40
Opening as shown in Figure 2 C, all pictures as shown in Figure 2 D, are normalized to 10 × 10 sizes, and build instruction by 40, linear discontinuities picture
Practice sample matrix
Wherein, f is image after normalization, the column vector generated by row major principle;
2) average defect figure is calculated
3) the defect error image vector of each sample defect image is calculated
di=fi-ψ, i=1 ... 80;
4) component covariance matrixA=(d1,…,d80);
5) Jacobi method is utilized to calculate the eigenvalue (λ of C1..., λ80) and characteristic vector (u1,…,u80), form feature empty
Between;Contribution rate according to eigenvalueChoose front p maximal eigenvector and characteristic of correspondence vector forms characteristics defect sky
Between W=(u1,…,up);
Wherein, contribution rateP the maximum eigenvalue sum referring to choose and all eigenvalues and ratio, it may be assumed that
Take Δ=0.98, now p=1, therefore characteristics defect space W=(u1);
6) by each sample defect error image vector projection to characteristics defect space, have: σi=WT·di, i=1 ...
80;
7) principle pressing row major after defect image normalization to be identified is constituted column vector κ;
8) difference of κ Yu ψ is projected to feature space, obtain its vector representation σ '=WT·(κ-ψ);
9) σ ' and σ is calculatediBetween Euclidean distanceI=1,2 ... 80;
10) ε of minimum is chosenmin=min{ εi, i=1,2 ..., 80, solve ε56=0.0259578025370024;
11) with minimum ε56Corresponding σ56Type is line defect, and the type of defect image to be detected is line defect.
Claims (1)
1. an industrial x-ray weld image circle, linear discontinuities sorting technique, it is characterised in that comprise the following steps:
1) select typical circular defect and each n of the doubtful topography of linear discontinuities individual, be normalized to h × w size, and build
Training sample matrix
Wherein, f is image after normalization, the column vector generated by row major principle;
2) average defect figure is calculated
3) the defect error image vector of each sample defect image is calculated:
di=fi-ψ, i=1 ... 2n;
4) component covariance matrix
5) Jacobi method is utilized to calculate the eigenvalue (λ of C1..., λ2n) and characteristic vector (u1,…,u2n), form feature space, root
Contribution rate according to eigenvalueChoose front p maximal eigenvector and characteristic of correspondence vector thereof formed characteristics defect space W=
(u1,u2,…,up);
Wherein, contribution rateP the maximum eigenvalue sum referring to choose and all eigenvalues and ratio, it may be assumed that
Take Δ > 0.9, even if the projection that training sample is on front p maximal eigenvector collection has more than the energy of 90%;
6) by each sample defect error image vector projection to characteristics defect space, σ is calculatedi=WT·di, i=1,2 ...
2n;
7) principle pressing row major after defect image normalization to be identified is constituted column vector κ;
8) difference of κ Yu ψ is projected to feature space, obtain its vector representation σ '=WT·(κ-ψ;
9) σ ' and σ is calculatediBetween Euclidean distanceI=1,2 ... 2n;
10) ε of minimum is chosenmin=min{ εi, i=1,2 ..., 2n, determine and be designated as j under it;
11) type of sample j is the type of defect image to be detected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610261096.6A CN105956613A (en) | 2016-04-25 | 2016-04-25 | Industrial x ray weld image circular, linear defect classification method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610261096.6A CN105956613A (en) | 2016-04-25 | 2016-04-25 | Industrial x ray weld image circular, linear defect classification method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105956613A true CN105956613A (en) | 2016-09-21 |
Family
ID=56916806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610261096.6A Pending CN105956613A (en) | 2016-04-25 | 2016-04-25 | Industrial x ray weld image circular, linear defect classification method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105956613A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109886231A (en) * | 2019-02-28 | 2019-06-14 | 重庆科技学院 | A kind of garbage burning factory Combustion Flame Recognition Using method |
CN113421261A (en) * | 2021-08-23 | 2021-09-21 | 金成技术有限公司 | Structural member production process defect detection method based on image processing |
CN117078620A (en) * | 2023-08-14 | 2023-11-17 | 正泰集团研发中心(上海)有限公司 | PCB welding spot defect detection method and device, electronic equipment and storage medium |
-
2016
- 2016-04-25 CN CN201610261096.6A patent/CN105956613A/en active Pending
Non-Patent Citations (1)
Title |
---|
高炜欣 等: "埋弧焊X射线焊缝缺陷图像分类算法研究", 《仪器仪表学报》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109886231A (en) * | 2019-02-28 | 2019-06-14 | 重庆科技学院 | A kind of garbage burning factory Combustion Flame Recognition Using method |
CN113421261A (en) * | 2021-08-23 | 2021-09-21 | 金成技术有限公司 | Structural member production process defect detection method based on image processing |
CN113421261B (en) * | 2021-08-23 | 2021-11-05 | 金成技术有限公司 | Structural member production process defect detection method based on image processing |
CN117078620A (en) * | 2023-08-14 | 2023-11-17 | 正泰集团研发中心(上海)有限公司 | PCB welding spot defect detection method and device, electronic equipment and storage medium |
CN117078620B (en) * | 2023-08-14 | 2024-02-23 | 正泰集团研发中心(上海)有限公司 | PCB welding spot defect detection method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Shah et al. | Butt welding joints recognition and location identification by using local thresholding | |
CN105956613A (en) | Industrial x ray weld image circular, linear defect classification method | |
JPH0896136A (en) | Evaluation system for welding defect | |
CN109859177A (en) | Industrial x-ray image assessment method and device based on deep learning | |
Jiang et al. | Weld defect classification based on texture features and principal component analysis | |
CN103499579A (en) | Quick non-destructive detection method for laser welding quality | |
CN112091472A (en) | Welding process quality fusion judgment method and device | |
CN103914838A (en) | Method for identifying defects of industrial x-ray weld joint image | |
US7680319B2 (en) | Method for the non-destructive testing of an element for a nuclear reactor | |
JP2008002805A (en) | Flaw inspection device by ac electromagnetic field measuring method | |
CN111489310A (en) | Searching method for small-diameter pipe welding joint radiographic inspection image weld joint area | |
Dang et al. | A novel method for detecting weld defects accurately and reliably in radiographic images | |
Li et al. | Weld defect detection based on Gaussian curve | |
Zuo et al. | An X-Ray-Based Automatic Welding Defect Detection Method for Special Equipment System | |
Zhang et al. | Multisensory data fusion technique and its application to welding process monitoring | |
Soares et al. | Computer vision system for weld bead geometric analysis | |
Kulkarni et al. | Machine learning based classification of welded components | |
Jacintha et al. | Plug Valve Surface Defects Identification through Nondestructive Testing and Fuzzy Deep-Learning Algorithm for Metal Porosity and Surface Evaluation | |
TWM604396U (en) | Weld checking system based on radiography | |
Nestleroth et al. | New Classification Approach for Dents With Metal Loss and Corrosion Along the Seam Weld | |
CN112129774A (en) | Online detection method for welding unfused defect | |
Rathod et al. | A novel method for detection and quantification of incomplete penetration type flaws in weldments | |
Pourasad et al. | A study on the modified algorithm for image processing in Tracking Seam Welding | |
Awang et al. | An improved image filtering method for weld bead inspection using Unsharp masking technique | |
Feng et al. | Evolution of triax magnetic flux leakage inspection for mitigation of spiral weld anomalies |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160921 |