[go: up one dir, main page]

CN103760168A - Smoothness-characteristic-quantity-based surface gray scale defect detection method for rotary-cut wooden product - Google Patents

Smoothness-characteristic-quantity-based surface gray scale defect detection method for rotary-cut wooden product Download PDF

Info

Publication number
CN103760168A
CN103760168A CN201410026283.7A CN201410026283A CN103760168A CN 103760168 A CN103760168 A CN 103760168A CN 201410026283 A CN201410026283 A CN 201410026283A CN 103760168 A CN103760168 A CN 103760168A
Authority
CN
China
Prior art keywords
gray scale
rotary
image
class
scale defect
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
Application number
CN201410026283.7A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201410026283.7A priority Critical patent/CN103760168A/en
Publication of CN103760168A publication Critical patent/CN103760168A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention relates to a smoothness-characteristic-quantity-based surface gray scale defect detection method for a rotary-cut wooden product. The method comprises the following steps: acquiring an image of the rotary-cut wooden product by using CCD (Charge Coupled Device) cameras placed at the middle upper positions of two LED (Light-Emitting Diode) strip light sources which are arranged symmetrically and adopt high-angle illuminating ways serving as illumination light sources, converting the acquired image into a digital signal through an image acquiring card, and transmitting the digital signal to a computer system; performing target area determination, smoothness characteristic quantity calculation and gray scale defect judgment on the input image, wherein the judgment threshold value of each gray scale defect is determined by using a self-adaptive maximum interclass variance method. By adopting the detection method, automatic online detection on the surface gray scale defects of the rotary-cut wooden product is realized, the production cost is reduced, the detection efficiency is increased, the detection rate of the gray scale defects is increased greatly, and the phenomena of detection missing and error detection are well overcome.

Description

Rotary-cut class wood product surface gray scale defect inspection method based on smoothness characteristic quantity
Technical field
The present invention relates to machine vision, product quality detection field, refer in particular to a kind of rotary-cut class wood product surface gray scale defect inspection method based on smoothness characteristic quantity.
Background technology
Due to natural timber raw material and production technology aspect, cause its surface of disposable rotary-cut class woodwork of producing to contain polytype gray scale defect, for example, knot, variable color, rotten, channel, rascal and pollution etc.; And, this type of rotary-cut class woodwork that includes gray scale defect can not continue on for subsequent production and use again, therefore needs rotary-cut class wood product surface gray scale defect to detect, and rejects unacceptable product, or suitably adjust processing parameter, to improve yield rate and the product quality of woodwork.
The main artificial visual detection method that relies on detects the surperficial gray scale defect of rotary-cut class woodwork at present, and the human resources that this traditional visual detection method expends are huge, to relevant enterprise, brought huge economic loss; Next, it is larger that testing result and detection quality are affected by subjective factor; In addition, detection efficiency is very low, can not meet the automated production demand of modern industry.
Along with theoretical growing with Computer Applied Technology of machine vision, vision detection technology is being deep into industrial every field gradually, for example now be widely used in (patent of invention, notification number: CN102095731A in the surface defects detection of each type objects such as paper, Copper Foil, bar cigarette external packing tracing paper, steel ball, Plastic medicinal bottle or product; Utility model patent, notification number: CN202928963U; Patent of invention, notification number: CN102020036A; Utility model patent, notification number: CN201555812U; Patent of invention, notification number: CN102053091A).
Body surface gray scale defects detection algorithm based on computer vision technique is mainly realized by the color characteristic that extracts image, wherein common with histogram feature; And the histogram feature amount of often using comprises, average, variance, skewness, kurtosis, energy and entropy etc. (computer knowledge and technology, 2009,5 (32): 9032-9034).
Nowadays, utilize computer vision technique to carry out the relevant report of rotary-cut class wood product surface gray scale defects detection little, and concrete application technology is still immature; Meanwhile, because rotary-cut class wood product surface gray scale defect type is numerous, and directly apply the above-mentioned characteristic quantities such as variance, skewness, can only pick out wherein a part of gray scale defect, thereby easily cause the phenomenons such as undetected and false retrieval.
Summary of the invention
In order to overcome, the existing detection efficiency of existing rotary-cut class wood product surface gray scale defect inspection method is low, automaticity is low, can not use noncontact visible detection method, and existing based on problems such as existing undetected, the false retrievals of the statistical characteristic values such as average, variance, skewness, the invention provides a kind of rotary-cut class wood product surface gray scale defect inspection method based on smoothness characteristic quantity.
Technical solution of the present invention is: the rotary-cut class wood product surface gray scale defect inspection method based on smoothness characteristic quantity, comprise two LED strip sources that are arranged symmetrically with and adopt high angle lighting system, be placed in the ccd video camera of the position, upper middle of two light sources, image pick-up card and computer system; Described ccd video camera gathers rotary-cut class woodwork image, by described image pick-up card, be translated into digital picture and be input in described computing machine, then utilizing following three steps it to be carried out to image processing and judge whether this rotary-cut class woodwork exists gray scale defect:
Step 1, image target area is determined, is utilized Threshold sementation to extract the target area of rotary-cut class woodwork;
Step 2, smoothness characteristic quantity calculates.
Calculate the normalization histogram p (h) of target area, the wherein gray level of each pixel in h presentation video, for 8 bit images, the scope of gray level h is 0 to 255, p to represent the probability that gray level occurs; Utilize formula (1) and (2) to calculate average m and variances sigma 2, further according to formula (3), obtain smoothness characteristic quantity R:
m = Σ i = 0 255 ip i - - - ( 1 )
σ 2 = Σ i = 0 255 ( i - m ) 2 p i - - - ( 2 )
R = 1 1 + σ 2 - - - ( 3 )
Step 3, the judgement of gray scale defect.
When smoothness characteristic quantity R is more than or equal to discrimination threshold T, represent rotary-cut class wood product surface normal, without gray scale defect; On the contrary, when R is less than discrimination threshold T, represent that rotary-cut class wood product surface contains gray scale defect.
In described detection method, the discrimination threshold T in described step 3 utilizes self-adaptation maximum variance between clusters to determine, concrete steps are:
1) choose the rotary-cut class woodwork image that n width surface is normal and all kinds of gray scale defects are contained on n width surface;
2) respectively to each width in 2n width image, according to the above step 1, carry out target area and determine, according to the above step 2, calculate the smoothness characteristic quantity R of target area;
3) by ascending sequence of smoothness characteristic quantity R of 2n width image; Within the scope of minimum and maximum R, successively etc. step-length is using each data as default classification thresholds T, and the corresponding image of R value that is more than or equal to T is divided into the 1st class, and the corresponding image of R value that is less than T is divided into the 2nd class; If the picture number that each class comprises is w i, wherein i=1 or 2, in each class, the mean value of R value is M i, according to formula (4), calculate the corresponding inter-class variance of each default classification thresholds T
σ 2
σ 2 = w 1 w 2 ( M 1 - M 2 ) 2 ( w 1 + w 2 ) 2 - - - ( 4 )
4) find out the maximal value in all inter-class variance data, the corresponding default classification thresholds of this maximal value is the discrimination threshold T using in testing process.
The present invention compared with prior art has following technical advantage:
1, the present invention adopts two symmetrical blue led strip sources of installing and applies high angle lighting system, can at utmost improve the homogeneity of irradiating light intensity on bar shaped rotary-cut class wood product surface, thus the actual reflectance component of reaction wood product surface farthest; Meanwhile, blue illumination can make on rotary-cut class wood product surface to be difficult for to be enhanced by the rascal of human eye detection and the natural gray scale defect such as rotten, has improved the contrast of image, thereby has improved the recall rate of rotary-cut class wood product surface gray scale defect.
2, compared with Traditional Man visual detection method, the present invention is based on vision detection technology and realized robotization detection, improve detection efficiency, reduced production cost, improved economic benefit and the social benefit of relevant enterprise.
3, with respect to other statistical characteristic value as the detection method of average, variance, skewness, kurtosis, energy and entropy, the present invention adopts smoothness characteristic quantity to carry out gray scale defect estimation, to imaging surface local gray level, sudden change has higher sensitivity, dissimilar gray scale defect is had to the stronger ability of birdsing of the same feather flock together, thereby greatly improved the recall rate of the rotary-cut class woodwork that contains gray scale defect, overcome well undetected and false retrieval phenomenon.
4, in the present invention, discrimination threshold adopts self-adaptation maximum variance between clusters to determine, has reduced the request for utilization of detection system, and has further improved automaticity.
Accompanying drawing explanation
Fig. 1 is detection system structural representation;
Fig. 2 is the rotary-cut class woodwork of surface without gray scale defect;
Fig. 3 is the rotten defect of rotary-cut class wood product surface;
Fig. 4 is rotary-cut class wood product surface rascal defect;
Fig. 5 is rotary-cut class wood product surface knot defect;
Fig. 6 is that rotary-cut class wood product surface pollutes defect;
Fig. 7 is the smoothness characteristic quantity result of calculation of the rotary-cut class woodwork image of surperficial normal and surperficial gray scale defect;
In figure, 1.CCD video camera, 2. blue led strip source, 3. image pick-up card, 4. computer system, 5. detecting step.
Embodiment
The specific embodiment of the present invention is described in conjunction with the accompanying drawings and embodiments.According to Fig. 1, set up measuring system, comprise 1, two blue led strip source 2 of ccd video camera, image pick-up card 3 and computing machine 4; Described two light sources 2 are arranged symmetrically with and adopt high angle lighting system, and described ccd video camera 1 be placed in two light sources 2 between position on the upper side; Described image pick-up card 3 is connected with described computing machine 4 with described ccd video camera 1 respectively.
Carrying out in actual detection, in the time of under rotary-cut class woodwork is sent to ccd video camera 1 successively, ccd video camera 1 carries out image acquisition, then image is converted into digital picture and is inputted computing machine 4 by image pick-up card 3.Choose the rotary-cut class woodworks that 100 width surfaces are normal and all kinds of gray scale defects are contained on 100 width surfaces, respectively it is carried out that image acquisition, target area are determined, smoothness characteristic quantity calculates, according to maximum variance between clusters, determines discrimination threshold T; The discrimination threshold T=0.0089 determining in this example.
Detection system is formally started working, and rotary-cut class woodwork to be detected is carried out to image acquisition, then utilizes following visible detection method it to be carried out to image processing and judge whether this rotary-cut class woodwork exists gray scale defect:
Step 1, image target area is determined, is utilized Threshold sementation to extract the target area of rotary-cut class woodwork;
Step 2, calculates the normalization histogram of target area, then according to formula (3), calculates smoothness characteristic quantity R;
Step 3, the judgement of gray scale defect, when R is more than or equal to T, presentation surface is normal; On the contrary, if when R is less than T, presentation surface contains gray scale defect.
For the rotary-cut class woodwork of having classified in advance, randomly draw normal and 1000 samples that all kinds of gray scale defects are contained on surface in 1000 surfaces, surperficial normal and surperficial gray scale defect image example is as shown in Fig. 2 to 6; Utilize the present invention to carry out surperficial gray scale defects detection to 2000 rotary-cut class woodworks, testing result is: in 1000 normal woodworks in surface, have 3 to be detected defectiveness; 1000 have 991 to be detected defectiveness containing in the woodwork of gray scale defect, and defect detection rate is 99.1%, and it is 0.3% that mistake is selected rate, and it is 0.9% that rate is selected in leakage.Testing result shows, the present invention can effectively detect rotary-cut class wood product surface gray scale defect, and has high defect detection rate and low mistake selects rate and leakage to select rate.

Claims (3)

1. the rotary-cut class wood product surface gray scale defect inspection method based on smoothness characteristic quantity, comprise two LED strip sources that are arranged symmetrically with and adopt high angle lighting system, be placed in the ccd video camera of the position, upper middle of two light sources, image pick-up card and computer system; Described ccd video camera collects rotary-cut class woodwork image, by described image pick-up card, be translated into digital picture and be input to described computer system, then utilize gray scale defect inspection method further to judge whether this rotary-cut class woodwork exists gray scale defect.
2. gray scale defect inspection method according to claim 1, is characterized in that, described detection method comprises three steps below:
Step 1, image target area is determined, utilizes Threshold sementation to extract rotary-cut class woodwork target area;
Step 2, calculates normalization histogram and the smoothness characteristic quantity R of target area;
Step 3, the judgement of gray scale defect, when R is more than or equal to discrimination threshold T, represents that rotary-cut class wood product surface is without gray scale defect; On the contrary, when R is less than T, represent that rotary-cut class wood product surface contains gray scale defect.
3. detection method according to claim 2, is characterized in that, definite use self-adaptation maximum variance between clusters of discrimination threshold T in described step 3, and concrete steps are:
1) choose the rotary-cut class woodwork image that n width surface is normal and all kinds of gray scale defects are contained on n width surface;
2) respectively the every piece image in 2n width image is carried out to target area according to step 1 described in described visible detection method and determine, then according to described step 2, calculate the smoothness characteristic quantity R of target area;
3), by ascending sequence of R value of 2n width image, within the scope of minimum and maximum R value, successively etc. step-length is using each data as default classification thresholds T; The corresponding image of R value that is more than or equal to T is divided into the 1st class, and the corresponding image of R value that is less than T is divided into the 2nd class; If the picture number comprising in each class is w i, wherein i=1 or 2, in each class, the mean value of R value is M i, according to formula
Figure FSA0000100610370000011
calculate the corresponding inter-class variance of each default classification thresholds T;
4) find out the maximal value in all inter-class variance data, the corresponding default classification thresholds of this maximal value is the discrimination threshold T using in testing process.
CN201410026283.7A 2014-01-15 2014-01-15 Smoothness-characteristic-quantity-based surface gray scale defect detection method for rotary-cut wooden product Pending CN103760168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410026283.7A CN103760168A (en) 2014-01-15 2014-01-15 Smoothness-characteristic-quantity-based surface gray scale defect detection method for rotary-cut wooden product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410026283.7A CN103760168A (en) 2014-01-15 2014-01-15 Smoothness-characteristic-quantity-based surface gray scale defect detection method for rotary-cut wooden product

Publications (1)

Publication Number Publication Date
CN103760168A true CN103760168A (en) 2014-04-30

Family

ID=50527443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410026283.7A Pending CN103760168A (en) 2014-01-15 2014-01-15 Smoothness-characteristic-quantity-based surface gray scale defect detection method for rotary-cut wooden product

Country Status (1)

Country Link
CN (1) CN103760168A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108663369A (en) * 2017-03-27 2018-10-16 研祥智能科技股份有限公司 A kind of magnetic shoe defects detection based on machine vision takes phase system
CN109613011A (en) * 2019-02-01 2019-04-12 东莞中科蓝海智能视觉科技有限公司 Timber cutting surfaces smoothness detection method

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4827142A (en) * 1986-02-22 1989-05-02 Helmut K. Pinsch Gmbh & Co. Method and system for optically testing sawn timber for faults
CN1800838A (en) * 2004-12-30 2006-07-12 戚大伟 Non-destructive test device for wood
CN101180536A (en) * 2005-05-18 2008-05-14 株式会社名南制作所 Method, apparatus and program product for searching knots in wood
CN201331499Y (en) * 2009-01-06 2009-10-21 优必选(上海)机械有限公司 Automatic imaging positioning instrument for wood defects
CN201413296Y (en) * 2009-06-11 2010-02-24 浙江创鑫木业有限公司 Device for detecting board surface flaw
CN101669023A (en) * 2007-04-20 2010-03-10 株式会社名南制作所 Lumber inspection method, device and program
CN101996405A (en) * 2010-08-30 2011-03-30 中国科学院计算技术研究所 Method and device for rapidly detecting and classifying defects of glass image
JP2011095109A (en) * 2009-10-29 2011-05-12 Panasonic Electric Works Co Ltd Wood defect detector and method therefor
CN102095731A (en) * 2010-12-02 2011-06-15 山东轻工业学院 System and method for recognizing different defect types in paper defect visual detection
CN102183524A (en) * 2011-01-10 2011-09-14 哈尔滨工业大学 Double-CCD (Charge Coupled Device) detecting method and system for apparent defect assessment of civil engineering structure
CN202182865U (en) * 2011-07-27 2012-04-04 国家林业局北京林业机械研究所 Image acquisition system for sawn timber surface defects

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4827142A (en) * 1986-02-22 1989-05-02 Helmut K. Pinsch Gmbh & Co. Method and system for optically testing sawn timber for faults
CN1800838A (en) * 2004-12-30 2006-07-12 戚大伟 Non-destructive test device for wood
CN101180536A (en) * 2005-05-18 2008-05-14 株式会社名南制作所 Method, apparatus and program product for searching knots in wood
CN101669023A (en) * 2007-04-20 2010-03-10 株式会社名南制作所 Lumber inspection method, device and program
CN201331499Y (en) * 2009-01-06 2009-10-21 优必选(上海)机械有限公司 Automatic imaging positioning instrument for wood defects
CN201413296Y (en) * 2009-06-11 2010-02-24 浙江创鑫木业有限公司 Device for detecting board surface flaw
JP2011095109A (en) * 2009-10-29 2011-05-12 Panasonic Electric Works Co Ltd Wood defect detector and method therefor
CN101996405A (en) * 2010-08-30 2011-03-30 中国科学院计算技术研究所 Method and device for rapidly detecting and classifying defects of glass image
CN102095731A (en) * 2010-12-02 2011-06-15 山东轻工业学院 System and method for recognizing different defect types in paper defect visual detection
CN102183524A (en) * 2011-01-10 2011-09-14 哈尔滨工业大学 Double-CCD (Charge Coupled Device) detecting method and system for apparent defect assessment of civil engineering structure
CN202182865U (en) * 2011-07-27 2012-04-04 国家林业局北京林业机械研究所 Image acquisition system for sawn timber surface defects

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
尹建新等: "灰度直方图在木材表面缺陷检测中的应用", 《浙江林学院学报》 *
齐丽娜等: "最大类间方差法在图像处理中的应用", 《无线电工程》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108663369A (en) * 2017-03-27 2018-10-16 研祥智能科技股份有限公司 A kind of magnetic shoe defects detection based on machine vision takes phase system
CN108663369B (en) * 2017-03-27 2024-08-02 研祥智慧物联科技有限公司 Magnetic shoe defect detection phase-picking system based on machine vision
CN109613011A (en) * 2019-02-01 2019-04-12 东莞中科蓝海智能视觉科技有限公司 Timber cutting surfaces smoothness detection method

Similar Documents

Publication Publication Date Title
CN105046700B (en) Fruit surface defect detection method and system based on gamma correction and color classification
CN104949998A (en) Online visual inspection device and method for surface dirt of group origin eggs
KR20100015628A (en) Lumber inspection method, device and program
CN103454285A (en) Transmission chain quality detection system based on machine vision
CN104537651B (en) Proportion detecting method and system for cracks in road surface image
CN103344577B (en) A kind of poultry meat freshness nondistructive detecting method based on multi-optical spectrum imaging technology
CN108520514A (en) Consistency detection method of printed circuit board electronic components based on computer vision
CN107490583A (en) A kind of intermediate plate defect inspection method based on machine vision
CN103473778A (en) Detecting algorithm for eccentrically-inserting defect of LED luminous chip
CN103439337A (en) Automatic detection device and method for apparent defects of piezoelectric ceramic buzzers
CN108254540A (en) A kind of sawn timber surface quality grades divide device and method
CN105574161A (en) Trademark graph element identification method, device and system
Uluişik et al. Image processing based machine vision system for tomato volume estimation
CN104198325A (en) Method for measuring ratio of cut stem to cut tobacco based on computer vision
WO2018010387A1 (en) Reversed element detection method and system
CN103345632A (en) Method for detecting surface scratch defects of battery tail end
CN103076342A (en) LabVIEW-based PCB (printed circuit board) plugging online detecting system and detecting method thereof
KR20080060851A (en) Defect Detection Method of Wood Surface
CN104318256A (en) Method for achieving automatic detection and classification of glass defects on basis of computer software
CN105319223A (en) Detection method and system of chalky rice
CN102128595B (en) Method and device for detecting size parameters of engraving tool
CN104535006B (en) A kind of bottle cap gap width evaluation method of utilization transmission-type illumination imaging systems
CN104132945A (en) On-line surface quality visual inspection device for bar based on optical fiber conduction
CN102621154A (en) Method and device for automatically detecting cloth defects on line based on improved differential box multi-fractal algorithm
CN114354508A (en) Wisdom agricultural plant support 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140430