CN104359918A - Method for detecting surface defects of speaker cone - Google Patents

Method for detecting surface defects of speaker cone Download PDF

Info

Publication number
CN104359918A
CN104359918A CN201410621124.1A CN201410621124A CN104359918A CN 104359918 A CN104359918 A CN 104359918A CN 201410621124 A CN201410621124 A CN 201410621124A CN 104359918 A CN104359918 A CN 104359918A
Authority
CN
China
Prior art keywords
cone
annular region
region
image
detected
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
CN201410621124.1A
Other languages
Chinese (zh)
Other versions
CN104359918B (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.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi University
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 Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN201410621124.1A priority Critical patent/CN104359918B/en
Publication of CN104359918A publication Critical patent/CN104359918A/en
Application granted granted Critical
Publication of CN104359918B publication Critical patent/CN104359918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to a method for detecting surface defects of a speaker cone. The method comprises the following steps: acquiring a surface image of the speaker cone, and segmenting a to-be-detected annular area; performing gradient detection on the to-be-detected annular area; and finally, performing consistency detection on the to-be-detected area. By utilizing the non-contact digital image detection technology, the defect detection efficiency of the speaker cone is improved, the method can be used for automatically detecting the surface appearance defects of the speaker cone, the product quality can be further improved, the production cost is reduced, and the method has important practical engineering significances.

Description

A kind of detection method of surface flaw of diffuser
Technical field
The invention belongs to field of machine vision, be specifically related to a kind of detection method of surface flaw of diffuser.
Background technology
In loudspeaker, can produce sharp pounding in magnetic field after voice coil loudspeaker voice coil connects sound signal, voice coil loudspeaker voice coil is fixed on cone, and the vibrations of voice coil loudspeaker voice coil drive the vibrations of cone simultaneously, and cone vibrations force air to shake, thus sound.Manufacturer is in the process manufacturing cone, and the reason cone surface due to technique there will be the surface imperfection such as cone slurry mark, cone lumps, cone wood chip, cone white point, affects outward appearance and the result of use of cone.In actual industrial production process, due to the restriction of technical conditions, cone surface defects detection still rests in the level of artificial visually examine, and labor strength is large, and production efficiency is low.And manual detection method is by the impact of the factors such as human eye vision sensitivity, individual subjective judgement, usually accurately and reliably cannot catch defect information, produce a large amount of undetected and flase drops by being easy to like this.If careless manipulation in the detection, also secondary damage can be caused to cone.Therefore work out a kind of open defect detection method being suitable for cone surface, realize Aulomatizeted Detect, can improve the quality of products further, reduce production cost, there is important practical meaning in engineering.
Summary of the invention
The object of the invention is the deficiency in order to overcome artificial visually examine's method, utilizing non-contact digital image detecting technique to improve the efficiency of diffuser defects detection, proposing a kind of detection method of surface flaw of diffuser.Concrete steps:
Step (1) gathers the surface image of diffuser, is partitioned into annular region to be detected;
The cone image F (size is M × N) collected; Due to the particular requirement of subsequent technique, only need to detect the annular region of cone; So need to carry out region segmentation to the original image collected, obtain annular cone region to be detected:
A () carries out Threshold segmentation, η by following formula to the cone image collected 1elect 80 as, obtain prospect cone region:
F ( i , j ) = 0 , ifF ( i , j ) < &eta; 1 F ( i , j ) , else
B () utilizes horizontal and vertical to project and positions the center of circle of cone, finally segmentation obtains the annular cone region needing to detect:
By following formula, horizontal projection is done to cone image:
H ( i ) = &Sigma; j = 1 N F ( i , j )
Then i is increased to M from 1, when occurring that H (i) is greater than threshold value η 2time (η 2elect 5000 as), current i is the coboundary of cone; Then i is increased, when occurring that H (i) is less than threshold value η 2time, current i is the lower limb of cone;
By following formula, vertical projection is done to cone image:
V ( j ) = &Sigma; i = 1 M F ( i , j )
Then j is increased to N from 1, when occurring that V (j) is greater than threshold value η 2time, current j is the left hand edge of cone; Then j is increased, when occurring that V (j) is less than threshold value η 2time, current j is the right hand edge of cone;
By horizontal and vertical projection, the edge, upper and lower, left and right of cone is demarcated, thus obtain the central coordinate of circle of cone.Then according to cone size and camera resolution, select the interior external radius of annular region, annular region to be detected is split;
Step (2) carries out gradient detection to the annular region to be detected split;
The defect on cone surface mainly contains cone lumps, cone wood chip, cone white point and cone slurry mark.Gradient detection algorithm is adopted to detect cone lumps, cone wood chip, cone white-spot defects; First adopt the gaussian filtering kernel function of 5 × 5 to carry out gaussian filtering to cone annular region to be detected, remove the impact of noise;
Grad f ' (i, j) corresponding to each point is calculated as follows to filtered annular region f:
f &prime; ( i , j ) = | f x &prime; ( i , j ) | + | f y &prime; ( i , j ) | 2
Wherein horizontal and vertical gradient is calculated as follows:
f′ x(i,j)=f(i+1,j)-f(i-1,j)
f′ y(i,j)=f(i,j+1)-f(i,j-1)
Then threshold process is done to gradient image f ', η 3elect 8 as, remove the impact of noise further:
f &prime; ( i , j ) = 0 , f &prime; ( i , j ) < &eta; 3 f &prime; ( i , j ) , else
The number of the interior non-zero points of gradient image f ' after last statistical threshold process, if not zero number is greater than threshold alpha, α elects 15 as, then judge this cone existing defects; Otherwise consistency detection is carried out to this cone region;
Step (3) is treated surveyed area and is made consistency detection;
Due to the restriction of technique, there will be cone slurry mark defect at the fringe region of cone; Due to the defect that cone slurry mark defect is on texture, the slurry mark defect of gradient detection algorithm to tiny like this texture is difficult to detect; Ring-type segmentation is carried out to the annular of cone region to be detected, because cone slurry mark defect only appears in the outer ledge region of cone, so only do consistency detection to outermost two-layer annular region.Ground floor annular region is positioned at outermost, and second layer annular region is positioned at the inner side of ground floor, and the radial width of annular region is determined by actual cone size and camera resolution.Each segmented areas of ground floor annular region is designated as each segmented areas of second layer annular region is designated as calculate the color average of each piecemeal in each layer annular region with color variance
Every one deck annular region is judged as follows:
R i 1 = 1 , if ( M i 1 / ( &Sigma; i M i 1 / K ) > &beta; 1 ) or ( V i 1 / ( &Sigma; i V i 1 / K ) > &beta; 2 ) 0 , else
R i 2 = 1 , if ( M i 2 / ( &Sigma; i M i 2 / K ) > &beta; 1 ) or ( V i 2 / ( &Sigma; i V i 2 / K ) > &beta; 2 ) 0 , else
Here K represents the piecemeal number in every layer of annular region, threshold value beta 1, β 2elect 1.3 as;
If the mark of all piecemeals is 0, then judge this cone not existing defects, otherwise judge this cone existing defects.
The present invention is by gradient and consistency detection, and the adaptive surface appearance defects to diffuser detects.
Beneficial effect of the present invention: the inventive method utilizes non-contact digital image detecting technique to improve the efficiency of diffuser defects detection, proposes a kind of detection method of surface flaw of diffuser.The inventive method is detected by gradient and the adaptive surface imperfection to diffuser of region consistency detection method detects, and can well overcome the deficiency of artificial visually examine's detection method, reduce production cost, have important practical meaning in engineering.
Accompanying drawing explanation
Fig. 1 a is original image;
Fig. 1 b is region to be detected;
Fig. 2 is that region consistency detects partitioning scheme figure
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described, the present invention includes following steps:
Step (1) gathers the surface image of diffuser, is partitioned into annular region to be detected;
The cone image F (size is M × N) collected, as shown in Figure 1a, due to the particular requirement of subsequent technique, only need to detect (as shown in Figure 1 b) the annular region of cone, so need to carry out region segmentation to the original image collected, obtain annular cone region to be detected:
A () carries out threshold value η by following formula to the cone image collected 1segmentation obtains prospect cone region:
F ( i , j ) = 0 , ifF ( i , j ) < &eta; 1 F ( i , j ) , else
B () utilizes horizontal and vertical to project and positions the center of circle of cone, finally segmentation obtains the annular cone region needing to detect:
By following formula, horizontal projection is done to cone image:
H ( i ) = &Sigma; j = 1 N F ( i , j )
Then i is increased to M from 1, when occurring that H (i) is greater than threshold value η 2time, current i is the coboundary of cone; Then i is increased, when occurring that H (i) is less than threshold value η 2time, current i is the lower limb of cone;
By following formula, vertical projection is done to cone image:
V ( j ) = &Sigma; i = 1 M F ( i , j )
Then j is increased to N from 1, when occurring that V (j) is greater than threshold value η 2time, current j is the left hand edge of cone; Then j is increased, when occurring that V (j) is less than threshold value η 2time, current j is the right hand edge of cone;
By horizontal and vertical projection, the edge, upper and lower, left and right of cone is demarcated, thus obtain the central coordinate of circle of cone.Then according to cone size and camera resolution, select the interior external radius of annular region, annular region to be detected is split;
Step (2) carries out gradient detection to the annular region to be detected split;
The defect on cone surface mainly contains cone lumps, cone wood chip, cone white point and cone slurry mark.Gradient detection algorithm is adopted to detect cone lumps, cone wood chip, cone white-spot defects; First adopt the gaussian filtering kernel function of 5 × 5 to carry out gaussian filtering to cone annular region to be detected, remove the impact of noise;
Grad f ' (i, j) corresponding to each point is calculated as follows to filtered annular region f:
f &prime; ( i , j ) = | f x &prime; ( i , j ) | + | f y &prime; ( i , j ) | 2
Wherein horizontal and vertical gradient is calculated as follows:
f′ x(i,j)=f(i+1,j)-f(i-1,j)
f′ y(i,j)=f(i,j+1)-f(i,j-1)
Then threshold value η is done to gradient image f ' 3process, remove the impact of noise further:
f &prime; ( i , j ) = 0 , f &prime; ( i , j ) < &eta; 3 f &prime; ( i , j ) , else
The number of the interior non-zero points of gradient image f ' after last statistical threshold process, if not zero number is greater than threshold alpha, then judges this cone existing defects; Otherwise consistency detection is carried out to this cone region;
Step (3) is treated surveyed area and is made consistency detection;
Due to the restriction of technique, there will be cone slurry mark defect at the fringe region of cone; Due to the defect that cone slurry mark defect is on texture, the slurry mark defect of gradient detection algorithm to tiny like this texture is difficult to detect; Split by the annular of mode to the cone region to be detected of Fig. 2, each segmented areas of ground floor annular region is designated as each segmented areas of second layer annular region is designated as calculate the color average of each piecemeal in each layer annular region with color variance
Every one deck annular region is judged as follows:
R i 1 = 1 , if ( M i 1 / ( &Sigma; i M i 1 / K ) > &beta; 1 ) or ( V i 1 / ( &Sigma; i V i 1 / K ) > &beta; 2 ) 0 , else
R i 2 = 1 , if ( M i 2 / ( &Sigma; i M i 2 / K ) > &beta; 1 ) or ( V i 2 / ( &Sigma; i V i 2 / K ) > &beta; 2 ) 0 , else
Here K represents the piecemeal number in every layer of annular region, β 1, β 2be respectively average and variance threshold values;
If the mark in all piecemeals is 0, then judge this cone not existing defects, otherwise judge this cone existing defects.

Claims (1)

1. a detection method of surface flaw for diffuser, is characterized in that the concrete steps of the method are:
Step (1) gathers the surface image of diffuser, is partitioned into annular region to be detected, specifically:
If the cone image F collected, size is M × N;
A () carries out threshold value η by following formula to the cone image collected 1segmentation, thus obtain prospect cone region:
F ( i , j ) = 0 , if F ( i , j ) < &eta; 1 F ( i , j ) , else
B () utilizes horizontal and vertical to project and positions the center of circle of cone, finally segmentation obtains the annular cone region needing to detect:
By following formula, horizontal projection is done to cone image:
H ( i ) = &Sigma; j = 1 N F ( i , j )
Then i is increased to M from 1, when occurring that H (i) is greater than threshold value η 2time, current i is the coboundary of cone; Then i is increased, when occurring that H (i) is less than threshold value η 2time, current i is the lower limb of cone;
By following formula, vertical projection is done to cone image:
V ( j ) = &Sigma; i = 1 M F ( i , j )
Then j is increased to N from 1, when occurring that V (j) is greater than threshold value η 2time, current j is the left hand edge of cone; Then j is increased, when occurring that V (j) is less than threshold value η 2time, current j is the right hand edge of cone;
By horizontal and vertical projection, the edge, upper and lower, left and right of cone is demarcated, thus obtain the central coordinate of circle of cone, then according to cone size and camera resolution, select the interior external radius of annular region, annular region to be detected is split;
Step (2) carries out gradient detection to the annular region to be detected split;
Gradient detection algorithm is adopted to detect cone lumps, cone wood chip, cone white-spot defects; First adopt the gaussian filtering kernel function of 5 × 5 to carry out gaussian filtering to cone annular region to be detected, remove the impact of noise;
Grad f ' (i, j) corresponding to each point is calculated as follows to filtered annular region f:
f &prime; ( i , j ) = | f x &prime; ( i , j ) | + | f y &prime; ( i , j ) | 2
Wherein horizontal and vertical gradient is calculated as follows:
f′ x(i,j)=f(i+1,j)-f(i-1,j)
f′ y(i,j)=f(i,j+1)-f(i,j-1)
Then threshold value η is done to gradient image f ' 3process, remove the impact of noise further:
f &prime; ( i , j ) = 0 , f &prime; ( i , j ) , &eta; 3 f &prime; ( i , j ) , else
The number of the interior non-zero points of gradient image f ' after last statistical threshold process, if not zero number is greater than threshold alpha, then judges this cone existing defects; Otherwise consistency detection is carried out to this cone region;
Step (3) is treated surveyed area and is made consistency detection;
Ring-type segmentation is carried out to the annular of cone region to be detected, only consistency detection is done to outermost two-layer annular region; Ground floor annular region is positioned at outermost, and second layer annular region is positioned at the inner side of ground floor, if each segmented areas of ground floor annular region is designated as each segmented areas of second layer annular region is designated as calculate the color average of each piecemeal in each layer annular region with color variance V i 1, V i 2;
Every one deck annular region is judged as follows:
R i 1 = 1 , if ( M i 1 / ( &Sigma; i M i 1 / K ) > &beta; 1 ) or ( V i 1 / ( &Sigma; i V i 1 / K ) > &beta; 2 ) 0 , else
R i 2 = 1 , if ( M i 2 / ( &Sigma; i M i 2 / K ) > &beta; 1 ) or ( V i 2 / ( &Sigma; i V i 2 / K ) > &beta; 2 ) 0 , else
Here K represents the piecemeal number in every layer of annular region, β 1, β 2be respectively average and variance threshold values;
If the mark of all piecemeals is 0, then judge this cone not existing defects, otherwise judge this cone existing defects.
CN201410621124.1A 2014-11-06 2014-11-06 A kind of detection method of surface flaw of diffuser Active CN104359918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410621124.1A CN104359918B (en) 2014-11-06 2014-11-06 A kind of detection method of surface flaw of diffuser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410621124.1A CN104359918B (en) 2014-11-06 2014-11-06 A kind of detection method of surface flaw of diffuser

Publications (2)

Publication Number Publication Date
CN104359918A true CN104359918A (en) 2015-02-18
CN104359918B CN104359918B (en) 2016-09-14

Family

ID=52527200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410621124.1A Active CN104359918B (en) 2014-11-06 2014-11-06 A kind of detection method of surface flaw of diffuser

Country Status (1)

Country Link
CN (1) CN104359918B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105136124A (en) * 2015-07-16 2015-12-09 延锋汽车饰件系统宁波有限公司 Automobile ornament vision mistake-proofing system
CN111353992A (en) * 2020-03-10 2020-06-30 塔里木大学 Agricultural product defect detection method and system based on textural features
CN114449431A (en) * 2022-01-24 2022-05-06 中国科学院沈阳自动化研究所 Method and system for carrying out nondestructive testing on loudspeaker diaphragm by using terahertz waves
CN116703890A (en) * 2023-07-28 2023-09-05 上海瑞浦青创新能源有限公司 Method and system for detecting tab defects

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
FRANCESCO BIANCONI ET AL.: "A sequential machine vision procedure for assessing paper impurities", 《COMPUTERS IN INDUSTRY》 *
NATALIYA STROKINA ET AL.: "Framework for developing image-based dirt particle classifiers for dry pulp sheets", 《MACHINE VISION AND APPLICATIONS》 *
周露露 等: "基于改进Hough变换的复杂纸页缺陷检测算法", 《中国造纸》 *
苑玮琦 等: "一种基于梯度极值的边缘检测算法", 《信息与控制》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105136124A (en) * 2015-07-16 2015-12-09 延锋汽车饰件系统宁波有限公司 Automobile ornament vision mistake-proofing system
CN111353992A (en) * 2020-03-10 2020-06-30 塔里木大学 Agricultural product defect detection method and system based on textural features
CN111353992B (en) * 2020-03-10 2023-04-07 塔里木大学 Agricultural product defect detection method and system based on textural features
CN114449431A (en) * 2022-01-24 2022-05-06 中国科学院沈阳自动化研究所 Method and system for carrying out nondestructive testing on loudspeaker diaphragm by using terahertz waves
CN114449431B (en) * 2022-01-24 2022-09-27 中国科学院沈阳自动化研究所 Method and system for carrying out nondestructive testing on loudspeaker diaphragm by using terahertz waves
CN116703890A (en) * 2023-07-28 2023-09-05 上海瑞浦青创新能源有限公司 Method and system for detecting tab defects
CN116703890B (en) * 2023-07-28 2023-12-19 上海瑞浦青创新能源有限公司 Method and system for detecting tab defects

Also Published As

Publication number Publication date
CN104359918B (en) 2016-09-14

Similar Documents

Publication Publication Date Title
CN102331425B (en) Textile defect detection method based on defect enhancement
CN109191459B (en) Automatic identification and rating method for continuous casting billet macrostructure center segregation defect
CN104359918B (en) A kind of detection method of surface flaw of diffuser
CN104535586B (en) Strip steel edge defect detection identification method
CN105158258A (en) Computer vision-based bamboo strip surface defect detection method
CN102496161B (en) Method for extracting contour of image of printed circuit board (PCB)
US9148644B2 (en) System for detecting structured artifacts in video sequences
CN108765402B (en) Non-woven fabric defect detection and classification method
CN103649989B (en) The analysis of the digital picture of outer surface of tire and the process of pseudo-measurement point
CN103051872B (en) Based on the belt deflection detection method of Edge extraction
CN103345632B (en) A kind of battery tail end surface scratch defect inspection method
CN107292310A (en) A kind of circular pointer dial plate vision positioning and automatic reading method
CN104156913A (en) Automatic optic inspection method for surface defects of metal cylindrical workpieces
CN104021553B (en) A kind of sonar image object detection method based on pixel layering
CN103499590A (en) Method and system for detecting and screening end defects in circular parts
CN104537651A (en) Proportion detecting algorithm and system for cracks in road surface image
CN107490582A (en) A kind of streamline Work Piece Verification System Based
CN105225243B (en) One kind can antimierophonic method for detecting image edge
CN104199823A (en) Fabric defect dynamic detection method based on visual data drive
CN114972397A (en) Infrared image defect contour detection method for wind power blade composite material
CN104240252A (en) Detecting Algorithm for cracks of surface of high-temperature billet of machine vision bar
CN103245666B (en) Automatic detecting method for appearance defects of storage battery polar plate
CN110084787A (en) A kind of synthetic leather gluing on-line monitoring method based on machine vision
CN107316287A (en) A kind of defect identification method in rectangle ferrite magnetic disk sheet face
CN106651831A (en) Bamboo piece defect detection method and bamboo piece defect detection system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant