CN104574408A - Industry transparent film package detecting method and device based on shape feature extraction - Google Patents
Industry transparent film package detecting method and device based on shape feature extraction Download PDFInfo
- Publication number
- CN104574408A CN104574408A CN201510023393.2A CN201510023393A CN104574408A CN 104574408 A CN104574408 A CN 104574408A CN 201510023393 A CN201510023393 A CN 201510023393A CN 104574408 A CN104574408 A CN 104574408A
- Authority
- CN
- China
- Prior art keywords
- feature extraction
- shape
- transparent film
- detection method
- module
- 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
Landscapes
- Image Analysis (AREA)
Abstract
The invention relates to an industry transparent film package detecting method and device based on shape feature extraction. The method comprises the steps that preprocessing is conducted on an obtained packaging product image, super pixel segmentation is conducted on the preprocessed image, seven Hu invariant moments are used for defining a shape feature to achieve the shape feature extraction, and new parameters are introduced; a multivariable parameter matrix is processed, and then principal components are obtained; a least-square support vector machine is used for conducting training based on the shape feature, and then superpixel blocks are classified. The device comprises a conveyor belt module, an image shooting module, an algorithm module and a result analysis module. The industry transparent film package detecting method and device based on the shape feature extraction can reduce the detecting time and maintain higher classification performance at the same time.
Description
Technical field
The present invention relates to transparent film packaging detection technique field, particularly relate to a kind of industrial transparent film packaging detection method and device of Shape-based interpolation feature extraction.
Background technology
Often there is defects such as encapsulating bubble, fold, relax in product external packaging film, has a strong impact on the image of product.Because packing film transmittance is high, the artificial naked eyes of existing many employings detect, and Detection results is undesirable, and the experience of operator and technical ability affect comparatively large, automatic production line cannot realize carry out Aulomatizeted Detect to the heat-sealing defect of product external packaging film.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of industrial transparent film packaging detection method and device of Shape-based interpolation feature extraction, can reduce detection time, and keep higher classification performance simultaneously.
The technical solution adopted for the present invention to solve the technical problems is: the industrial transparent film packaging detection method providing a kind of Shape-based interpolation feature extraction, comprises the following steps:
(1) pre-service is carried out to the packaging product image obtained;
(2) pretreated image is carried out to the segmentation of super-pixel;
(3) utilize seven Hu not bending moment definition shape facility realize Shape Feature Extraction, and introduce new parameter;
(4) multivariable parameter matrix is processed, obtain major component;
(5) use least square method supporting vector machine to train according to shape facility, then super-pixel block is classified.
Described packaging product image uses bowl-shape light source and wide-angle lens to obtain.
In described step (1), employing first utilizes Canny rim detection, and recycling expansive working carries out pre-service to the packaging product image obtained.
Described step (2) adopts the mode of simple linear iteration cluster to carry out super-pixel segmentation.
In described step (3) seven Hu not bending moment be respectively:
φ
1=η
20+η
02;
φ
3=(η
30-3η
12)
2+(3η
21-η
03)
2;
φ
4=(η
30+η
12)
2+(η
21+η
03)
2;
φ
5=(η
30-3η
12)(η
30+η
12)[(η
30+η
12)
2-3(η
21+η
03)
2]
+(3η
21-η
03)(η
21+η
03)[3(η
30+η
12)
2-(η
21+η
03)
2];
φ
6=(η
20-η
02)[(η
30+η
12)
2-(η
21+η
03)
2]+4η
11(η
30+η
12)(η
21+η
03);
φ
7=(3η
21-η
03)(η
30+η
12)[(η
30+η
12)
2-3(η
21+η
03)
2]+
(η
03-η
12)(η
21+η
03)[3(η
30+η
12)
2-(η
21+η
03)
2];
η
ijrepresent normalization center, (i+j) rank square of image.The center square of (i+j) of the f (x+y) of image function is defined as
wherein Ω is the interval of x, y.For the digital picture of N*M, utilize summation to replace integration, then (i+j) center, rank can be expressed as
then format center, (i+j) rank square can be expressed as
Wherein
Wherein, the normalized moments of seven Hu not bending moment is constant to translation, convergent-divergent, stretching, extension and extruding change; The normalization center square of the first six Hu not bending moment is to invariable rotary; The normalization center square of the 7th Hu not bending moment is also constant to distortion to invariable rotary.
Introduce new parameter in described step (3) to comprise: area, girth, density, hole number, hole number and area ratio; Wherein, area: be used for calculating the pixel count that comprises of hole; Girth: on the outline line of hole, pel spacing is measured from sum; Density:
wherein S is area, and L is girth; Hole number: the hole number in a packaging; Hole number and area ratio: be used for distinguishing macroscopic void and small holes.
Described step (4) middle use least square method supporting vector machine chooses 1000 holes and 2000 non-holes are trained, and uses the sorter of training out to classify to the super-pixel split.
The technical solution adopted for the present invention to solve the technical problems is: the industrial transparent film packaging pick-up unit also providing a kind of Shape-based interpolation feature extraction, comprising: conveyor belt module, for transmitting packaging product; Picture shooting module, is positioned at directly over conveyor belt module, for obtaining the image transmitting packaging product; Algoritic module, is connected with described picture shooting module, for carrying out picture processing according to above-mentioned detection method; Results analyses module, for carrying out analysis beneficial effect to the result of picture processing
Owing to have employed above-mentioned technical scheme, the present invention compared with prior art, there is following advantage and good effect: the Shape Feature Extraction that the present invention adopts not only make use of seven Hu not bending moment definition shape facility, and introduce new parameter, also use principal component analysis (PCA) and carry out dimension-reduction treatment, and utilize LSSVM to train, then the sorter trained is classified to super-pixel block.Method of the present invention not only reduces the time, and effect is also relatively good, industrially has feasibility.
Accompanying drawing explanation
Fig. 1 is process flow diagram of the present invention;
Fig. 2 uses apparatus structure schematic diagram of the present invention.
Embodiment
Below in conjunction with specific embodiment, set forth the present invention further.Should be understood that these embodiments are only not used in for illustration of the present invention to limit the scope of the invention.In addition should be understood that those skilled in the art can make various changes or modifications the present invention, and these equivalent form of values fall within the application's appended claims limited range equally after the content of having read the present invention's instruction.
Embodiments of the present invention relate to a kind of industrial transparent film packaging detection method of Shape-based interpolation feature extraction, as shown in Figure 1, comprise the following steps:
(1) pre-service is carried out to the packaging product image obtained;
(2) pretreated image is carried out to the segmentation of super-pixel;
(3) utilize seven Hu not bending moment definition shape facility realize Shape Feature Extraction, and introduce new parameter;
(4) multivariable parameter matrix is processed, obtain major component;
(5) use least square method supporting vector machine to train according to shape facility, then super-pixel block is classified.
Below each step is described in detail.
Pre-service:
First Canny rim detection is utilized, recycling expansive working.
Super-pixel is split:
Be the two-dimensional matrix of pixel composition to the understanding of image, so segmentation is also based on pixel, but the segmentation based on pixel can cause treatment effeciency too low in the past, and what therefore the present invention adopted is super-pixel segmentation.Super-pixel refers to that be communicated with in regional area in image, brightness or the close pixel of color set.What the present invention adopted is the segmentation of SLIC (Simple LinearIterative Clustering) super-pixel.
Feature extraction
What the present invention adopted method is seven Hu not bending moment definition shape facilities, and the new parameter introduced.The expression of seven Hu not bending moment is as follows:
φ
1=η
20+η
02
φ
3=(η
30-3η
12)
2+(3η
21-η
03)
2
φ
4=(η
30+η
12)
2+(η
21+η
03)
2
φ
5=(η
30-3η
12)(η
30+η
12)[(η
30+η
12)
2-3(η
21+η
03)
2]+
(3η
21-η
03)(η
21+η
03)[3(η
30+η
12)
2-(η
21+η
03)
2]
φ
6=(η
20-η
02)[(η
30+η
12)
2-(η
21+η
03)
2]+4η
11(η
30+η
12)(η
21+η
03)
φ
7=(3η
21-η
03)(η
30+η
12)[(η
30+η
12)
2-3(η
21+η
03)
2]+
(η
03-η
12)(η
21+η
03)[3(η
30+η
12)
2-(η
21+η
03)
2]
Wherein, η
ijrepresent normalization center, (i+j) rank square of image.The center square of (i+j) of the f (x+y) of image function is defined as
wherein Ω is the interval of x, y.For the digital picture of N*M, utilize summation to replace integration, then (i+j) center, rank can be expressed as
then format center, (i+j) rank square can be expressed as
Wherein
Through calculating invariant moment features be F
m=φ
1, φ
2.... φ
7, wherein the value of High Order Moment is very little, therefore needs to carry out standardization when coupling, and normalized moments is constant to translation, convergent-divergent, stretching, extension and extruding change.In addition, front 6 normalization center squares are to invariable rotary, and the 7th also constant to distortion.
Although these seven squares that well shape facility can be described, when image data base is larger, only these seven scalars are inadequate, and the present invention has introduced new parameter: area, girth, density, hole number, hole number and area ratio.Shown in being expressed as follows of area, girth, density, hole number, hole number and area ratio:
1) area: be used for calculating the pixel count that comprises of hole;
2) girth: on the outline line of hole, pel spacing is measured from sum, the distance between pixel arranged side by side is 1 pixel, and between vergence direction, the distance of pixel is when carrying out circumferential measurements, needs to calculate distance respectively according to connected mode between pixel;
3) density:
wherein S is area, and L is girth;
4) hole number: calculate the hole number in a packaging;
5) hole number and area ratio: be mainly used to distinguish macroscopic void and small holes.
Principal component analysis (PCA)
The main thought of principal component analysis (PCA) carries out matrix disposal to multivariable parameter matrix, and what obtain is the linear combination of original variable, and two pairwise uncorrelateds, the information that original variable comprises can be reacted to greatest extent.
LSSVM classifies
Use least square method supporting vector machine (Least Squares Support Vector Machine, LSSVM) that the super-pixel of segmentation is categorized as hole and non-hole.For least square method supporting vector machine, optimization problem can be expressed as:
Use Lagrange to solve above-mentioned optimization problem, be converted to and solve a linear equation problem.
In the training of LSSVM, choose 1000 holes, 2000 non-holes are trained, and namely train 3000 groups of data.Use the sorter of training out to classify to the super-pixel split, each super-pixel is divided into hole and non-hole.
Second embodiment of the present invention relates to the industrial transparent film packaging pick-up unit of Shape-based interpolation feature extraction, as shown in Figure 2, comprising: conveyor belt module 1, picture shooting module 2, algoritic module 3, results analyses module 4.Conveyor belt module 1 is made up of travelling belt, its effect at the uniform velocity transmits industrial packaging product, picture shooting module 2 is positioned at directly over conveyor belt module, effect uses bowl-shape light source and wide-angle lens carry out taking thus obtain the image of packaging product, the effect of algoritic module 3 carries out picture processing according to above-mentioned detection method, and the effect of results analyses module 4 analyzes the result of picture processing.
Be not difficult to find, the Shape Feature Extraction that the present invention adopts not only make use of seven Hu not bending moment definition shape facility, and introduce new parameter, also use principal component analysis (PCA) and carry out dimension-reduction treatment, and utilize LSSVM to train, then the sorter trained is classified to super-pixel block.Method of the present invention not only reduces the time, and effect is also relatively good, industrially has feasibility.
Claims (8)
1. an industrial transparent film packaging detection method for Shape-based interpolation feature extraction, is characterized in that, comprise the following steps:
(1) pre-service is carried out to the packaging product image obtained;
(2) pretreated image is carried out to the segmentation of super-pixel;
(3) utilize seven Hu not bending moment definition shape facility realize Shape Feature Extraction, and introduce new parameter;
(4) multivariable parameter matrix is processed, obtain major component;
(5) use least square method supporting vector machine to train according to shape facility, then super-pixel block is classified.
2. the industrial transparent film packaging detection method of Shape-based interpolation feature extraction according to claim 1, is characterized in that, described packaging product image uses bowl-shape light source and wide-angle lens to obtain.
3. the industrial transparent film packaging detection method of Shape-based interpolation feature extraction according to claim 1, it is characterized in that, in described step (1), employing first utilizes Canny rim detection, and recycling expansive working carries out pre-service to the packaging product image obtained.
4. the industrial transparent film packaging detection method of Shape-based interpolation feature extraction according to claim 1, is characterized in that, described step (2) adopts the mode of simple linear iteration cluster to carry out super-pixel segmentation.
5. the industrial transparent film packaging detection method of Shape-based interpolation feature extraction according to claim 1, is characterized in that, in described step (3) seven Hu not bending moment be respectively:
φ
1=η
20+η
02;
φ
2=(η
20-η
02)
2+4η
1 2 1;
φ
3=(η
30-3η
12)
2+(3η
21-η
03)
2;
φ
4=(η
30+η
12)
2+(η
21+η
03)
2;
φ
5=(η
30-3η
12)(η
30+η
12)[(η
30+η
12)
2-3(η
21+η
03)
2]
+(3η
21-η
03)(η
21+η
03)[3(η
30+η
12)
2-(η
21+η
03)
2];
φ
6=(η
20-η
02)[(η
30+η
12)
2-(η
21+η
03)
2]+4η
11(η
30+η
12)(η
21+η
03);
φ
7=(3η
21-η
03)(η
30+η
12)[(η
30+η
12)
2-3(η
21+η
03)
2]+
(η
03-η
12)(η
21+η
03)[3(η
30+η
12)
2-(η
21+η
03)
2];
η
ijrepresent normalization center, (i+j) rank square of image;
Wherein, the normalized moments of seven Hu not bending moment is constant to translation, convergent-divergent, stretching, extension and extruding change; The normalization center square of the first six Hu not bending moment is to invariable rotary; The normalization center square of the 7th Hu not bending moment is also constant to distortion to invariable rotary.
6. the industrial transparent film packaging detection method of Shape-based interpolation feature extraction according to claim 1, it is characterized in that, introduce new parameter in described step (3) and comprise: area, girth, density, hole number, hole number and area ratio; Wherein, area: be used for calculating the pixel count that comprises of hole; Girth: on the outline line of hole, pel spacing is measured from sum; Density:
wherein S is area, and L is girth; Hole number: the hole number in a packaging; Hole number and area ratio: be used for distinguishing macroscopic void and small holes.
7. the industrial transparent film packaging detection method of Shape-based interpolation feature extraction according to claim 1, it is characterized in that, described step (4) middle use least square method supporting vector machine chooses 1000 holes and 2000 non-holes are trained, and uses the sorter of training out to classify to the super-pixel split.
8. an industrial transparent film packaging pick-up unit for Shape-based interpolation feature extraction, is characterized in that, comprising: conveyor belt module, for transmitting packaging product; Picture shooting module, is positioned at directly over conveyor belt module, for obtaining the image transmitting packaging product; Algoritic module, is connected with described picture shooting module, for carrying out picture processing according to the detection method as described in claim arbitrary in claim 1-7; Results analyses module, for analyzing the result of picture processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510023393.2A CN104574408A (en) | 2015-01-16 | 2015-01-16 | Industry transparent film package detecting method and device based on shape feature extraction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510023393.2A CN104574408A (en) | 2015-01-16 | 2015-01-16 | Industry transparent film package detecting method and device based on shape feature extraction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104574408A true CN104574408A (en) | 2015-04-29 |
Family
ID=53090380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510023393.2A Pending CN104574408A (en) | 2015-01-16 | 2015-01-16 | Industry transparent film package detecting method and device based on shape feature extraction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104574408A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105118044A (en) * | 2015-06-16 | 2015-12-02 | 华南理工大学 | Method for automatically detecting defects of wheel-shaped cast product |
CN106384074A (en) * | 2015-07-31 | 2017-02-08 | 富士通株式会社 | Detection apparatus of pavement defects and method thereof, and image processing equipment |
CN106530317A (en) * | 2016-09-23 | 2017-03-22 | 南京凡豆信息科技有限公司 | Stick figure computer scoring and auxiliary coloring method |
CN106778778A (en) * | 2016-12-01 | 2017-05-31 | 广州亚思信息科技有限责任公司 | A kind of high-speed hardware multiple target feature extracting method |
CN108230327A (en) * | 2016-12-14 | 2018-06-29 | 南京文采科技有限责任公司 | A kind of packaging location based on MVP platforms and sort research universal method |
CN109978824A (en) * | 2019-02-19 | 2019-07-05 | 深圳大学 | A kind of transparent membrane defect method for measuring shape of palaemon and system |
CN112101182A (en) * | 2020-09-10 | 2020-12-18 | 哈尔滨市科佳通用机电股份有限公司 | Railway wagon floor damage fault identification method based on improved SLIC method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499600A (en) * | 2002-10-31 | 2004-05-26 | 三井金属矿业株式会社 | Checking method and checker for thin film loading band for encasulating electronic part |
US20100256796A1 (en) * | 2007-10-05 | 2010-10-07 | Kei Nara | Defect detection method of display device and defect detection apparatus of display device |
CN102915938A (en) * | 2012-10-08 | 2013-02-06 | 上海华力微电子有限公司 | Device for detecting defects at back of wafer and method therefor |
CN103075979A (en) * | 2011-10-26 | 2013-05-01 | 卢存伟 | Three-dimensional surface detecting device and three-dimensional surface detecting method |
CN103903265A (en) * | 2014-03-31 | 2014-07-02 | 东华大学 | Method for detecting industrial product package breakage |
CN104063851A (en) * | 2014-07-03 | 2014-09-24 | 东华大学 | Industrial transparent film package test method based on Retinex |
-
2015
- 2015-01-16 CN CN201510023393.2A patent/CN104574408A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499600A (en) * | 2002-10-31 | 2004-05-26 | 三井金属矿业株式会社 | Checking method and checker for thin film loading band for encasulating electronic part |
US20100256796A1 (en) * | 2007-10-05 | 2010-10-07 | Kei Nara | Defect detection method of display device and defect detection apparatus of display device |
CN103075979A (en) * | 2011-10-26 | 2013-05-01 | 卢存伟 | Three-dimensional surface detecting device and three-dimensional surface detecting method |
CN102915938A (en) * | 2012-10-08 | 2013-02-06 | 上海华力微电子有限公司 | Device for detecting defects at back of wafer and method therefor |
CN103903265A (en) * | 2014-03-31 | 2014-07-02 | 东华大学 | Method for detecting industrial product package breakage |
CN104063851A (en) * | 2014-07-03 | 2014-09-24 | 东华大学 | Industrial transparent film package test method based on Retinex |
Non-Patent Citations (3)
Title |
---|
刘艳: "基于CCD扫描的聚合物薄膜缺陷检测关键技术研究", 《中国博士学位论文全文数据库 信息科技辑》 * |
毋媛媛 等: "作物病害图像形状特征提取研究", 《农机化研究》 * |
董保全: "基于机器视觉的钢板表面缺陷检测系统的关键技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105118044A (en) * | 2015-06-16 | 2015-12-02 | 华南理工大学 | Method for automatically detecting defects of wheel-shaped cast product |
WO2016201947A1 (en) * | 2015-06-16 | 2016-12-22 | 华南理工大学 | Method for automated detection of defects in cast wheel products |
CN105118044B (en) * | 2015-06-16 | 2017-11-07 | 华南理工大学 | A kind of wheel shape cast article defect automatic testing method |
US10803573B2 (en) | 2015-06-16 | 2020-10-13 | South China University Of Technology | Method for automated detection of defects in cast wheel products |
CN106384074A (en) * | 2015-07-31 | 2017-02-08 | 富士通株式会社 | Detection apparatus of pavement defects and method thereof, and image processing equipment |
CN106530317A (en) * | 2016-09-23 | 2017-03-22 | 南京凡豆信息科技有限公司 | Stick figure computer scoring and auxiliary coloring method |
CN106530317B (en) * | 2016-09-23 | 2019-05-24 | 南京凡豆信息科技有限公司 | A kind of scoring of simple picture computer and auxiliary painting methods |
CN106778778A (en) * | 2016-12-01 | 2017-05-31 | 广州亚思信息科技有限责任公司 | A kind of high-speed hardware multiple target feature extracting method |
CN108230327A (en) * | 2016-12-14 | 2018-06-29 | 南京文采科技有限责任公司 | A kind of packaging location based on MVP platforms and sort research universal method |
CN109978824A (en) * | 2019-02-19 | 2019-07-05 | 深圳大学 | A kind of transparent membrane defect method for measuring shape of palaemon and system |
CN112101182A (en) * | 2020-09-10 | 2020-12-18 | 哈尔滨市科佳通用机电股份有限公司 | Railway wagon floor damage fault identification method based on improved SLIC method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104574408A (en) | Industry transparent film package detecting method and device based on shape feature extraction | |
CN108830188B (en) | Vehicle detection method based on deep learning | |
CN109583483B (en) | Target detection method and system based on convolutional neural network | |
US11222224B2 (en) | Automatic image synthesizing apparatus and method | |
US20210166374A1 (en) | Construction method, inspection method, and program for image data with label, and construction device and inspection device for image data with label | |
CN107966454A (en) | A kind of end plug defect detecting device and detection method based on FPGA | |
CN104597057B (en) | A kind of column Diode facets defect detecting device based on machine vision | |
CN112700442A (en) | Die-cutting machine workpiece defect detection method and system based on Faster R-CNN | |
CN107607546A (en) | Leather defect inspection method, system and device based on photometric stereo vision | |
CN106650740A (en) | License plate identification method and terminal | |
CN104915684B (en) | A kind of image-recognizing method and device based on the more plane SVMs of robust | |
CN104001676A (en) | Automatic sorting method and production line for large-scale multi-variety mixed-match underwear | |
CN103903265B (en) | The method of detection industrial products packages in damaged condition | |
CN108108703A (en) | Deceleration strip missing detection method, device and electronic equipment | |
CN112861931A (en) | Multi-level change detection method based on difference attention neural network | |
CN112345534A (en) | Vision-based bubble plate particle defect detection method and system | |
CN108896550A (en) | Facial mask print quality inspection method and system | |
CN103679144B (en) | Method for identifying fruits and vegetables in complex environment based on computer vision | |
Baumann et al. | Motion binary patterns for action recognition | |
CN113887524A (en) | Magnetite microscopic image segmentation method based on semantic segmentation | |
CN103903009A (en) | Industrial product detection method based on machine vision | |
Chen et al. | SwinTD: Transformer-based detection network for foreign objects in the cut section of tobacco packets | |
CN108932471A (en) | A kind of vehicle checking method | |
CN107944394A (en) | A kind of video analysis method and system being detected to material in conveyor | |
CN103927312B (en) | The fail message automatic classification method and system of a kind of CIS imaging sensors |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150429 |
|
RJ01 | Rejection of invention patent application after publication |