CN107014821A - A kind of plastics valve bag detecting system and method - Google Patents

A kind of plastics valve bag detecting system and method Download PDF

Info

Publication number
CN107014821A
CN107014821A CN201710115768.7A CN201710115768A CN107014821A CN 107014821 A CN107014821 A CN 107014821A CN 201710115768 A CN201710115768 A CN 201710115768A CN 107014821 A CN107014821 A CN 107014821A
Authority
CN
China
Prior art keywords
bag
plastics valve
valve bag
image
product
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
CN201710115768.7A
Other languages
Chinese (zh)
Other versions
CN107014821B (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.)
SHENZHEN WEITUSHI TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN WEITUSHI TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN WEITUSHI TECHNOLOGY Co Ltd filed Critical SHENZHEN WEITUSHI TECHNOLOGY Co Ltd
Priority to CN201710115768.7A priority Critical patent/CN107014821B/en
Publication of CN107014821A publication Critical patent/CN107014821A/en
Application granted granted Critical
Publication of CN107014821B publication Critical patent/CN107014821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N21/8901Optical details; Scanning details
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N21/8914Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles characterised by the material examined
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N21/8901Optical details; Scanning details
    • G01N2021/8908Strip illuminator, e.g. light tube
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N2021/8909Scan signal processing specially adapted for inspection of running sheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The invention discloses a kind of plastics valve bag detecting system and method, the system includes:Line scanning device;Base is detected, detection base is located at below line scanning device;Photoelectric sensor on detection base;Blowning installation, for plastics valve bag product to be blown into predeterminated position according to pre-set programs;Magnetic valve, for controlling blowning installation to blow or stopping blowing, is electrically connected at blowning installation;The first roller bearing and the second roller bearing of detection base both sides are respectively arranged at, for driving plastics valve bag product to be moved on detection base;Motor;Motor driver, is electrically connected at motor;Industrial computer, is connected to line scanning device, magnetic valve, photoelectric sensor and motor driver.The invention has the beneficial effect that:The qualification rate of product is improved, the quality risk for the product that dispatches from the factory is reduced, makes full use of image processing and pattern recognition to recognize plastics valve bag defect.

Description

A kind of plastics valve bag detecting system and method
Technical field
Examined the present invention relates to machine vision image detection and mode identification technology, more particularly to a kind of plastics valve bag Examining system and method.
Background technology
In recent years, developing rapidly with image processing and pattern recognition, is solved actual using image processing algorithm The engineering project of problem is more and more, for example, dimensional measurement, classification are carried out to workpiece product and is recognized, surface defects of products inspection Survey, number-plate number identification, bar code recognition etc..The too busy to get away various plastics valve bags of our daily life, plastics are self-styled Stain on bag and it is dirty influence whether a bag health for inner packing food, so as to influence healthy, the print on plastics valve bag Fuzzy or off normal is spent to influence whether valve bag attractive in appearance in itself, the rupture of plastics valve bag is easily caused food or liquid in bag The leakage of body, the defect of these current plastics valve bag products is identified by manually detecting, and plastics valve bag Product material itself is soft, size also disunity, scope of the product size from several centimetres to up to a hundred centimetres so that artificial to lack Sunken detection efficiency is low, cost is high, while hidden danger is also brought along to the vision health of testing staff, if artificial online in production line If detection, also there is certain security risk, offset, can only manually adopt simultaneously for the position of decalcomania on plastics valve bag With the means of kind of calliper, but this means are extremely inefficient, it is impossible to realize the full inspection of plastics valve bag product, when yield is big, only Can be by the way of sampling observation or eye estimate, there is very high risk in the quality of product.
The content of the invention
The technical problem to be solved in the present invention is, life is manually detected for the above-mentioned valve bag product of plastics in the prior art Produce efficiency it is low, cost is high, insecurity the problem of there is provided a kind of plastics valve bag detecting system and method.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of plastics valve bag detecting system is constructed, including:
Line scanning device, the plastics valve bag product image to be detected for gathering;
Base is detected, for plastics valve bag product described in support, the detection base is located under the line scanning device Side;
Photoelectric sensor on the detection base, for whether in place to detect the plastics valve bag product;
Blowning installation, for the plastics valve bag product to be blown into predeterminated position according to pre-set programs;
Magnetic valve, for controlling the blowning installation to blow or stopping blowing, is electrically connected at the blowning installation;
The first roller bearing and the second roller bearing of the detection base both sides are respectively arranged at, for driving the plastics valve bag Product is moved on the detection base;
Motor, for driving first roller bearing and the second roller bearing;
Motor driver, for driving the motor to drive first roller bearing and the motion of the second roller bearing, electrically connects It is connected to the motor;
Industrial computer, is connected to the line scanning device, the magnetic valve, the photoelectric sensor and the motor and drives Dynamic device.
In plastics valve bag detecting system of the present invention, in addition to:
LED/light source, for for the plastics valve bag product light filling, being arranged at the detection Its lower side, is electrically connected with In the industrial computer.
In plastics valve bag detecting system of the present invention, in addition to:
Vertical rack;
Horizontal stand, one end of the horizontal stand is fixedly connected on the vertical rack, and the other end is fixedly connected on institute State line scanning device.
In plastics valve bag detecting system of the present invention, the line scanning device includes:
Line scan camera, the side of the line scan camera offers opening, and the horizontal stand is arranged in the opening With the fixed line scan camera, the line scan camera is electrically connected at the industrial computer;
Line scanning lens, are arranged at the lower surface of the line scan camera to be directed at the plastics valve bag product.
In plastics valve bag detecting system of the present invention, the plastics valve bag product and the detection base It is centrally located on same axis, strip through hole is offered on the detection base, so that the plastics valve bag is produced Product enter line scan.
In plastics valve bag detecting system of the present invention, the industrial computer includes:
Gigabit network interface, is connected to the line scanning device to transmit the view data of the plastics valve bag product;
I/O control interfaces, are connected to the photoelectric sensor;
RS232 interfaces, are connected to the motor driver;
USB interface, is connected to default display.
In plastics valve bag detecting system of the present invention, the industrial computer includes:
Digital light control interface, is connected to the LED/light source.
On the other hand there is provided a kind of plastics valve bag detection method there is provided above-mentioned plastics valve bag detecting system, it is special Levy and be, including:
The image of plastics valve bag product is gathered by the line scanning device, and described image is sent to the industry control Machine;
Described image is converted into gray-scale map by the industrial computer, and calculates the gray-scale map and default standard plastic The deviation of valve bag product, the plastics valve bag product is obtained by contours extract algorithm and minimum external quadrangle algorithm Location information;
Judge that the plastics valve bag product whether there is defect according to the location information;
Control the blowning installation that the plastics valve bag product is blown into predeterminated position according to pre-set programs.
It is described to be converted to described image by the industrial computer in plastics valve bag detection method of the present invention Gray-scale map, and the deviation of the gray-scale map and default standard plastic valve bag product is calculated, by contours extract algorithm and most Small external quadrangle algorithm obtains the location information of the plastics valve bag product, including:
Described image is converted into gray-scale map by the industrial computer, and the gray-scale map is contracted to default standard and is moulded Expect the size of valve bag product;
Calculate the difference of the gray-scale map and default standard plastic valve bag product, and take the absolute value of the difference with Obtain the error image;
Image local enhancing processing is carried out to the error image to obtain enhancing image, wherein, enhancing processing includes:Time The pixel value of the error image is gone through, the pixel value increase preset setting values of default designated value is will be greater than, institute will be less than or equal to The pixel value for stating default designated value is set to zero;
Image outline detection is carried out to the enhancing image using contours extract algorithm, and the maximum profile of area is used Minimum external quadrangle algorithm carries out external quadrangle process of fitting treatment, so as to obtain the coordinate on external four summits of quadrangle.
It is described to judge the plastics certainly according to the location information in plastics valve bag detection method of the present invention Envelope product whether there is defect, including:
Judge that the plastics valve bag product whether there is bag side black spot defect:Bag border area domain is obtained by location information, Threshold binarization treatment is fixed to image in the domain of the bag border area, the bag side sum of bag border area domain non-zero points pixel is calculated, The bag side sum is judged whether in the range of default first threshold, if so, then it is judged as no bag side black spot defect, if It is no, then it is judged as there is bag side black spot defect;
Judge that the plastics valve bag product whether there is bag side cracking defect:Image in the domain of the bag border area is carried out certainly Threshold binarization treatment is adapted to, several connected regions are obtained using connected domain extraction algorithm, several connected regions are calculated The characteristic parameter in domain, judges the characteristic parameter whether in the range of default Second Threshold, if so, being then judged as no bag side Cracking defect, if it is not, being then judged as a bag side cracking defect;
Judge that the plastics valve bag product whether there is bag stamp off normal defect:Bag is obtained by the location information Body region, topography's enhancing processing and erosion operation are carried out to image in the bag region, by contours extract algorithm and Whether minimum external quadrangle algorithm is positioned to printing area, judge the positional parameter of the printing area beyond default 3rd threshold range, if so, being then judged as bag stamp off normal defect, if it is not, being then judged as no bag stamp off normal defect;
Judge that the plastics valve bag product whether there is the dirty defect of bag:Image in the bag region is carried out certainly Threshold binarization treatment and erosion operation are adapted to, the bag sum of bag region non-zero points pixel is calculated, judges that the bag is total Whether number is in default 4th threshold range, if so, being then judged as the dirty defect of no bag, if it is not, being then judged as bag Dirty defect.
A kind of plastics valve bag detecting system disclosed above and method have the advantages that:Can effectively it detect Go out the position skew of plastics valve bag decalcomania, improve the qualification rate of product, reduce the quality risk for the product that dispatches from the factory, fully profit Plastics valve bag defect is recognized with image processing and pattern recognition, artificial detection is instead of, reduces enterprise's production cost, Enterprises production efficiency is improved, the economic benefit of enterprise is improved.
Brief description of the drawings
A kind of structural representation for plastics valve bag detecting system that Fig. 1 provides for one embodiment of the invention;
The structured flowchart for the image processing software platform that Fig. 2 provides for one embodiment of the invention;
A kind of flow chart for plastics valve bag detection method that Fig. 3 provides for one embodiment of the invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
The invention provides a kind of plastics valve bag detecting system and method, it is intended that can effectively detect The position skew of plastics valve bag decalcomania, improves the qualification rate of product, reduces the quality risk for the product that dispatches from the factory, make full use of Image processing and pattern recognition recognizes plastics valve bag defect, instead of artificial detection, reduces enterprise's production cost, carries High enterprises production efficiency, improves the economic benefit of enterprise.
Referring to Fig. 1, a kind of structural representation for plastics valve bag detecting system that Fig. 1 provides for one embodiment of the invention, The plastics valve bag detecting system includes line scanning device, detection base 5, photoelectric sensor 8, blowning installation 102, magnetic valve 101st, the first roller bearing 6, the second roller bearing 7, motor 19, motor driver 18, industrial computer 9, LED/light source 3, vertical rack 21 and Horizontal stand 20.
Line scanning device is used to gather the image of plastics valve bag product 4 to be detected;The line scanning device is swept including line Retouch camera 1 and line scanning lens 2.The side of the line scan camera 1 offers opening, and the horizontal stand 20 is arranged in described Opening is electrically connected at the industrial computer 9 with the fixed line scan camera 1, the line scan camera 1;Line scanning lens 2 are set The lower surface of the line scan camera 1 is placed in be directed at the plastics valve bag product 4.
Detect that base 5 is used for plastics valve bag product 4 described in support, the detection base 5 is located at the line scanning device Lower section;The plastics valve bag product 4 is centrally located on same axis with the detection base 5, the detection base 5 On offer strip through hole so that the plastics valve bag product 4 enters line scan.
Photoelectric sensor 8 is used for whether in place detecting the plastics valve bag product 4, on the detection base 5;
Blowning installation 102 is used to the plastics valve bag product 4 is blown into predeterminated position according to pre-set programs;
Magnetic valve 101 is used to control the blowning installation 102 to blow or stop blowing, and is electrically connected at the blowning installation 102;
First roller bearing 6 and the second roller bearing 7 are respectively arranged at detection base 5 both sides, for driving the plastics self-styled Bag product 4 is moved on the detection base 5;
Motor 19 is used to drive the roller bearing 7 of the first roller bearing 6 and second;
Motor driver 18 is used to drive the motor 19 to drive the roller bearing 7 of the first roller bearing 6 and second to move, electricity Property is connected to the motor 19;
Industrial computer 9 is connected to the line scanning device, the magnetic valve 101, the photoelectric sensor 8 and the electricity Machine driver 18.The industrial computer 9 includes gigabit network interface 14, I/O control interfaces 10, RS232 interfaces 13, USB interface 15, number Word light source control interface 12.Gigabit network interface 14 is connected to the line scanning device to transmit the plastics valve bag product 4 View data;I/O control interfaces 10 are connected to the photoelectric sensor 8;RS232 interfaces 13 are connected to the motor driver 18;USB interface 15 is connected to default display 17.Digital light control interface 12 is connected to LED/light source 3.
LED/light source 3 is used to be the plastics valve bag product light filling, is arranged at the downside of detection base 5, is electrically connected with In the industrial computer 9.
One end of the horizontal stand 20 is fixedly connected on the vertical rack 21, and the other end is fixedly connected on the line and swept Imaging apparatus.The supporting structure being made up of horizontal stand 20 and vertical rack 21, horizontal stand 20 is connected on vertical rack 21.Line Scanning camera 1 is connected on horizontal stand 20, and line scanning lens 2 are connected to the lower section of line scan camera 1, the He of line scan camera 1 Line scanning lens 2 are used for the view data for gathering plastics valve bag product 4 to be detected after combining.The connecting line of line scan camera 1 is swept The collection view data of camera lens 2 is retouched, is transmitted by PCI-Express 14 to industrial computer 9;Detect that base 5 is located at the lower section of line scanning lens 2 For support plastics valve bag product 4 to be detected;There is a strip through hole on detection base 5, the lower section of detection base 5 is provided with LED/light source 3;Photoelectric sensor 8, which is arranged on detection base 5, is used for whether in place detecting plastics valve bag product 4;Industrial computer 9 Photoelectric sensor 8 is connected by the input of I/O control interfaces 10, magnetic valve is connected by the output end of I/O control interfaces 10 101, motor driver 18 is connected by RS232 interfaces 13, LED/light source 3 is connected by digital light control interface 12, passes through figure As VGA Display interface 15 connects display 17, various algorithms are performed in industrial computer 9.Power supply 16 is that industrial computer 9 is powered.
In the system and device, photoelectric sensor 8 transmits low level signal to I/O control interfaces 10 always, now without Plastics valve bag defects detection;After plastics valve bag product 4 is detected in place, plastics valve bag product is set to bit flag 1, now the transmission high level signal of photoelectric sensor 8 is to I/O control interfaces 10 and continues for some time and then recovery low level; Image processing software in industrial computer 9 reads a signal of I/O control interfaces 10 at interval of a period of time, if receiving I/O controls The signal of interface 10 processed is high level, carries out defect algorithm detection, inspection to the plastics valve bag product image currently collected immediately Survey result to export to motor driver 18 by RS232 interfaces 13, the motor 19 of motor driver 18 drives roller bearing 1 and rolling Axle 27 drives plastics valve bag product 4 in test position motion, after the completion of detection, is touched by the output end of I/O control interfaces 10 The control blowning installation 102 of solenoid valve 101 blows away the defective products in plastics valve bag product, if it is low electricity to receive signal Flat, then industrial computer image processing software is without defects detection.
CPU11 placement algorithms in industrial computer 9 perform software, as shown in Fig. 2 Fig. 2 provides for one embodiment of the invention Image processing software platform structured flowchart, software frame includes:Control zone 23 (including start-up and shut-down control 27, user's control 28, Camera control 29, light source control 30, I/O control 31), viewing area 24 (including image shows that 32, result shows 33), parameter region 25 (including image parameter 34, hardware parameter 35, defect parameters 36, systematic parameter 37) and message area 26 (including debugging message 38, fortune Row message 39, system message 40, defect message 41).Start-up and shut-down control 27 includes startup, the running status of halt system and controlled System;User's control 28 includes user account, password and logging status are managed and controlled;Camera control 29 includes causing phase Machine starts to gather the opening camera of image work and so that camera terminates to gather the closing camera of image work;Light source control 30 is wrapped The opening light source that LED/light source 3 is started working and the closing light source for causing the power cut-off of LED/light source 3 are included, and it is bright to light source Degree carries out digital regulated control function;The I/O ports input that I/O controls 31 include the collection working condition of photoelectric sensor 8 is adopted Collection and the I/O ports output switch control that magnetic valve 101 is worked.Image shows that 32 are used to show the figure that camera is collected Picture;As a result display 33 be used for display image algorithm identifying processing after images, show the position of specific defect in the picture and The order of severity of defect.Image parameter 34 includes setting image exposuring time, brightness of image, image chroma, picture contrast, figure As image parameters such as gain, image definition, Gamma corrections;Hardware parameter 35 includes setting video format, the frame rate of camera Etc. parameter;The defect parameters that defect parameters 36 include needing in plastics valve bag defective vision detection algorithm are set;Systematic parameter 37, which include system operation, needs the parameter set to be configured.The various debugging letter that debugging message 38 is used to show in system operation Breath, the problem of contributing to developer's tracking and processing system emerged in operation;Operation message 39 is used to show in system operation The status information of software processing;System message 40 is used for the status information of hardware module in display system;Defect message 41 is used for Show the statistical information of various defects.
Referring to Fig. 3, a kind of flow chart for plastics valve bag detection method that Fig. 3 provides for one embodiment of the invention, the modeling Expect that valve bag detection method is realized by above-mentioned plastics valve bag detecting system, the plastics valve bag detection method includes step S1-S4:
S1, the image for gathering by the line scanning device plastics valve bag product 4, and described image is sent to described Industrial computer 9;Plastics valve bag production to be detected is gathered using the line scan camera 1 and line scanning lens 2 that are connected with industrial computer 9 in real time The image of product 4.
S2, by the industrial computer 9 described image is converted into gray-scale map, and calculates the gray-scale map and default standard The deviation of plastics valve bag product 4, the plastics valve bag is obtained by contours extract algorithm and minimum external quadrangle algorithm The location information of product 4;When positioning unsuccessful, judge as positioning defect processing;Otherwise to Current standards size gray level image Affine transformation is carried out, and the result images after conversion and normal grayscale image are subjected to difference operation and corrosion treatment.The step Rapid S2 includes sub-step S21-S24:
S21, by the industrial computer 9 described image is converted into gray-scale map, and the gray-scale map is contracted to default The size of standard plastic valve bag product 4;
S22, the difference for calculating the gray-scale map and default standard plastic valve bag product 4, and take the exhausted of the difference To being worth to obtain the error image;
S23, image local enhancing processing is carried out to the error image to obtain enhancing image, wherein, enhancing processing bag Include:The pixel value of the error image is traveled through, the pixel value increase preset setting values of default designated value is will be greater than, will be less than or wait Zero is set in the pixel value of the default designated value;In the step, to the error image carry out image local enhancing processing and A regional processing is kept away, image binaryzation processing and smoothing processing is then carried out, then carry out Image erosion processing.
S24, image outline detection carried out to the enhancing image using contours extract algorithm, and to the maximum profile of area External quadrangle process of fitting treatment is carried out using minimum external quadrangle algorithm, so as to obtain the seat on external four summits of quadrangle Mark.Using connected domain the least surrounding boxes extraction algorithm (i.e. minimum external quadrangle algorithm), the least surrounding boxes are obtained Characteristic parameter, so as to obtain the position of plastics valve bag product 4 to be detected and the spy of angle character, wherein the least surrounding boxes Levying parameter includes vertex position, area, center and the angle of the rectangle.The error image is carried out at image local enhancing A regional processing is managed and kept away, image binaryzation processing and smoothing processing is then carried out, then carries out Image erosion processing, is then used Contours extract algorithm carries out image outline detection, and carries out four sides using minimum external quadrangle algorithm to the maximum profile of area Shape process of fitting treatment, obtains the coordinate on external four summits of quadrangle.Due to keeping away a regional processing, smoothing processing, at Image erosion Reason etc. is general knowledge known in this field, be will not be repeated here.
S3, judge that according to the location information plastics valve bag product 4 whether there is defect;The step S3 includes Sub-step S31-S34:
S31, judge the plastics valve bag product 4 whether there is bag side black spot defect:Bag side is obtained by location information Region, image in the domain of the bag border area is fixed threshold binarization treatment, calculates the bag side of bag border area domain non-zero points pixel Sum, judges the bag side sum whether in the range of default first threshold, if so, being then judged as that no bag side stain lacks Fall into, if it is not, being then judged as there is bag side black spot defect;The binaryzation of image, exactly sets the gray value of the pixel on image It is set to 0 or 255, that is, whole image is showed significantly there was only black and white visual effect.
S32, judge the plastics valve bag product 4 whether there is bag side cracking defect:To image in the domain of the bag border area Adaptive threshold binary conversion treatment is carried out, several connected regions are obtained using connected domain extraction algorithm, calculated described in several The characteristic parameter of connected region, judges the characteristic parameter whether in the range of default Second Threshold, if so, being then judged as Without bag side cracking defect, if it is not, being then judged as a bag side cracking defect;The characteristic parameter of the connected region of described image includes described Shape, center, area, length and the circularity index of connected region.Adaptive threshold binaryzation and fixed threshold binaryzation Difference is that calculate threshold value by known algorithm carries out image binaryzation again.
S33, judge the plastics valve bag product 4 whether there is bag stamp off normal defect:Pass through the location information Bag region is obtained, topography's enhancing processing and erosion operation are carried out to image in the bag region, passes through contours extract Algorithm and minimum external quadrangle algorithm are positioned to printing area, judge whether the positional parameter of the printing area exceeds Default 3rd threshold range, if so, being then judged as bag stamp off normal defect, if it is not, being then judged as no bag stamp off normal Defect;
S34, judge the plastics valve bag product 4 whether there is the dirty defect of bag:To image in the bag region Adaptive threshold binary conversion treatment and erosion operation are carried out, the bag sum of bag region non-zero points pixel is calculated, judges described Whether bag sum is in default 4th threshold range, if so, being then judged as the dirty defect of no bag, if it is not, then judging For the dirty defect of bag.
The plastics valve bag product 4 is blown to predeterminated position by S4, the control blowning installation 102 according to pre-set programs.
It is exactly the main algorithm of plastics valve bag defective vision detection above, the positioning of plastics valve bag product 4 needs 50ms/ Individual, bag side black spot defect detection rates are 50ms/, and bag side cracking defect detection rates are 90ms/, and bag stamp off normal lacks It is 100ms/ to fall into detection rates, and the dirty defects detection speed of bag is 90ms/, and four detection rates all detected are 380ms/, the accuracy of detection of bag side black spot defect reaches 0.1mm, and the accuracy of detection of stamp off normal defect reaches 0.1mm, plastics Valve bag defect average detected precision reaches more than 97%, complies fully with actual industrial production application.
Testing result for all types of plastic valve bag defect is as shown in the table:
There is provided herein the various operations of embodiment.In one embodiment, described one or operation may be constructed one The computer-readable instruction stored on individual or computer-readable medium, it will be so that computing device be held when being performed by electronic equipment The row operation.Describing the orders of some or all of operations, to should not be construed as to imply that these operations necessarily order dependent 's.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that not being institute There is operation to exist in each embodiment provided in this article.
Moreover, word " preferably " used herein means serving as example, example or illustration.Feng Wen is described as " preferably " any aspect or design be not necessarily to be construed as than other aspect or design it is more favourable.On the contrary, the use purport of word " preferably " Concept is being proposed in a concrete fashion.Term "or" as used in this application is intended to mean the "or" included and non-excluded "or".I.e., unless otherwise or clear from the context, " X means that nature includes any one of arrangement using A or B ". That is, if X uses A;X uses B;Or X uses A and B both, then " X is met using A or B " in foregoing any example.
Although moreover, the disclosure, people in the art has shown and described relative to one or implementation Member is based on the reading to the specification and drawings and understands it will be appreciated that equivalent variations and modification.The disclosure includes all such Modifications and variations, and be limited only by the scope of the following claims.Held particularly with by said modules (such as element) Capable various functions, for describe the term of such component be intended to correspond to the specified function of performing the component (for example its Functionally of equal value) random component (unless otherwise instructed), with performing the disclosure shown in this article in structure Exemplary implementations in function open structure it is not equivalent.Although in addition, the special characteristic of the disclosure relative to Only one in some implementations is disclosed, but this feature can be with that can be such as the phase for given or application-specific Hope one or other combinations of features with other favourable implementations.Moreover, with regard to term " comprising ", " having ", " containing " or For its deformation is used in embodiment or claim, such term is intended to the side similar to term "comprising" Formula includes.
Each functional unit in the embodiment of the present invention can be integrated in a processing module or unit list Solely be physically present, can also multiple or multiple above units be integrated in a module.Above-mentioned integrated module can both be used The form of hardware is realized, it would however also be possible to employ the form of software function module is realized.If the integrated module is with software function The form of module is realized and is situated between as independent production marketing or in use, an embodied on computer readable storage can also be stored in In matter.Storage medium mentioned above can be read-only storage, disk or CD etc..Above-mentioned each device or system, can be with Perform the storage method in correlation method embodiment.
In summary, although the present invention it is disclosed above with preferred embodiment, but above preferred embodiment and be not used to limit The system present invention, one of ordinary skill in the art without departing from the spirit and scope of the present invention, can make various changes and profit Adorn, therefore protection scope of the present invention is defined by the scope that claim is defined.

Claims (10)

1. a kind of plastics valve bag detecting system, it is characterised in that including:
Line scanning device, the plastics valve bag product image to be detected for gathering;
Base is detected, for plastics valve bag product described in support, the detection base is located at below the line scanning device;
Photoelectric sensor on the detection base, for whether in place to detect the plastics valve bag product;
Blowning installation, for the plastics valve bag product to be blown into predeterminated position according to pre-set programs;
Magnetic valve, for controlling the blowning installation to blow or stopping blowing, is electrically connected at the blowning installation;
The first roller bearing and the second roller bearing of the detection base both sides are respectively arranged at, for driving the plastics valve bag product Moved on the detection base;
Motor, for driving first roller bearing and the second roller bearing;
Motor driver, for driving the motor to drive first roller bearing and the motion of the second roller bearing, is electrically connected at The motor;
Industrial computer, is connected to the line scanning device, the magnetic valve, the photoelectric sensor and motor driving Device.
2. plastics valve bag detecting system according to claim 1, it is characterised in that also include:
LED/light source, for for the plastics valve bag product light filling, being arranged at the detection Its lower side, being electrically connected at institute State industrial computer.
3. plastics valve bag detecting system according to claim 2, it is characterised in that also include:
Vertical rack;
Horizontal stand, one end of the horizontal stand is fixedly connected on the vertical rack, and the other end is fixedly connected on the line Scanning means.
4. plastics valve bag detecting system according to claim 3, it is characterised in that the line scanning device includes:
Line scan camera, the side of the line scan camera offers opening, and the horizontal stand is arranged in the opening with solid The fixed line scan camera, the line scan camera is electrically connected at the industrial computer;
Line scanning lens, are arranged at the lower surface of the line scan camera to be directed at the plastics valve bag product.
5. plastics valve bag detecting system according to claim 4, it is characterised in that the plastics valve bag product and institute State detection base to be centrally located on same axis, strip through hole is offered on the detection base, so that described Plastics valve bag product enters line scan.
6. plastics valve bag detecting system according to claim 1, it is characterised in that the industrial computer includes:
Gigabit network interface, is connected to the line scanning device to transmit the view data of the plastics valve bag product;
I/O control interfaces, are connected to the photoelectric sensor;
RS232 interfaces, are connected to the motor driver;
USB interface, is connected to default display.
7. plastics valve bag detecting system according to claim 2, it is characterised in that the industrial computer includes:
Digital light control interface, is connected to the LED/light source.
8. a kind of plastics valve bag detection method is there is provided the plastics valve bag detecting system described in claim any one of 1-7, its It is characterised by, including:
The image of plastics valve bag product is gathered by the line scanning device, and described image is sent to the industrial computer;
Described image is converted into gray-scale map by the industrial computer, and calculates the gray-scale map and default standard plastic is self-styled The deviation of bag product, the positioning of the plastics valve bag product is obtained by contours extract algorithm and minimum external quadrangle algorithm Information;
Judge that the plastics valve bag product whether there is defect according to the location information;
Control the blowning installation that the plastics valve bag product is blown into predeterminated position according to pre-set programs.
9. plastics valve bag detection method according to claim 8, it is characterised in that it is described by the industrial computer by institute State image and be converted to gray-scale map, and calculate the deviation of the gray-scale map and default standard plastic valve bag product, pass through profile Extraction algorithm and minimum external quadrangle algorithm obtain the location information of the plastics valve bag product, including:
Described image is converted into gray-scale map by the industrial computer, and the gray-scale map is contracted to default standard plastic certainly The size of envelope product;
The difference of the gray-scale map and default standard plastic valve bag product is calculated, and takes the absolute value of the difference to obtain The error image;
Image local enhancing processing is carried out to the error image to obtain enhancing image, wherein, enhancing processing includes:Traversal institute The pixel value of error image is stated, the pixel value increase preset setting values of default designated value is will be greater than, will be less than or equal to described pre- If the pixel value of designated value is set to zero;
Image outline detection is carried out to the enhancing image using contours extract algorithm, and to the maximum profile of area using minimum External quadrangle algorithm carries out external quadrangle process of fitting treatment, so as to obtain the coordinate on external four summits of quadrangle.
10. plastics valve bag detection method according to claim 8, it is characterised in that described according to the location information Judge that the plastics valve bag product whether there is defect, including:
Judge that the plastics valve bag product whether there is bag side black spot defect:Bag border area domain is obtained by location information, to institute State image in bag border area domain and threshold binarization treatment is fixed, calculate the bag side sum of bag border area domain non-zero points pixel, judge Whether the bag side sum is in the range of default first threshold, if so, being then judged as no bag side black spot defect, if it is not, then It is judged as there is bag side black spot defect;
Judge that the plastics valve bag product whether there is bag side cracking defect:Image in the domain of the bag border area is carried out adaptive Threshold binarization treatment, several connected regions are obtained using connected domain extraction algorithm, calculate several connected regions Characteristic parameter, judges the characteristic parameter whether in the range of default Second Threshold, if so, being then judged as no bag side rupture Defect, if it is not, being then judged as a bag side cracking defect;
Judge that the plastics valve bag product whether there is bag stamp off normal defect:Bag area is obtained by the location information Domain, topography's enhancing processing and erosion operation are carried out to image in the bag region, passes through contours extract algorithm and minimum External quadrangle algorithm is positioned to printing area, judges whether the positional parameter of the printing area exceeds the default 3rd Threshold range, if so, being then judged as bag stamp off normal defect, if it is not, being then judged as no bag stamp off normal defect;
Judge that the plastics valve bag product whether there is the dirty defect of bag:Image in the bag region is carried out adaptive Threshold binarization treatment and erosion operation, calculate the bag sum of bag region non-zero points pixel, judge that the bag sum is It is no to be in default 4th threshold range, if so, being then judged as the dirty defect of no bag, if it is not, being then judged as that bag is dirty Defect.
CN201710115768.7A 2017-02-28 2017-02-28 Plastic self-sealing bag detection system and method Active CN107014821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710115768.7A CN107014821B (en) 2017-02-28 2017-02-28 Plastic self-sealing bag detection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710115768.7A CN107014821B (en) 2017-02-28 2017-02-28 Plastic self-sealing bag detection system and method

Publications (2)

Publication Number Publication Date
CN107014821A true CN107014821A (en) 2017-08-04
CN107014821B CN107014821B (en) 2020-08-04

Family

ID=59440813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710115768.7A Active CN107014821B (en) 2017-02-28 2017-02-28 Plastic self-sealing bag detection system and method

Country Status (1)

Country Link
CN (1) CN107014821B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108344716A (en) * 2018-01-08 2018-07-31 天长市嘉瑞包装材料有限公司 A kind of verifying attachment of medical respiration bag
CN109596054A (en) * 2019-02-01 2019-04-09 东莞中科蓝海智能视觉科技有限公司 The size detection recognition methods of strip workpiece
CN113552131A (en) * 2021-06-03 2021-10-26 揭阳市群星机械股份有限公司 Patch bag making quality detection method based on machine vision
EP4198501A1 (en) * 2021-12-16 2023-06-21 Pacraft Co., Ltd. Bag processing apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003130804A (en) * 2001-10-26 2003-05-08 Mikiro Kobayashi Detector and method for detecting pin hole of thin film body
CN102305797A (en) * 2011-04-29 2012-01-04 无锡众望四维科技有限公司 Method for automatically detecting foreign matter of medical product package by using machine vision system
CN103072718A (en) * 2012-12-27 2013-05-01 天津普达软件技术有限公司 Machine vision detection system and method for food packaging production line
CN104297255A (en) * 2014-10-15 2015-01-21 西安交通大学 Visual inspection method and system device for paper cup defects
CN105806846A (en) * 2016-04-06 2016-07-27 江苏万乐复合材料有限公司 Intelligent visual defect detection system of paper-plastic compound bag integrated machine
CN106290375A (en) * 2016-07-14 2017-01-04 北京航信增材科技有限公司 Based on selective laser sintering technology contactless in line defect automatic checkout system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003130804A (en) * 2001-10-26 2003-05-08 Mikiro Kobayashi Detector and method for detecting pin hole of thin film body
CN102305797A (en) * 2011-04-29 2012-01-04 无锡众望四维科技有限公司 Method for automatically detecting foreign matter of medical product package by using machine vision system
CN103072718A (en) * 2012-12-27 2013-05-01 天津普达软件技术有限公司 Machine vision detection system and method for food packaging production line
CN104297255A (en) * 2014-10-15 2015-01-21 西安交通大学 Visual inspection method and system device for paper cup defects
CN105806846A (en) * 2016-04-06 2016-07-27 江苏万乐复合材料有限公司 Intelligent visual defect detection system of paper-plastic compound bag integrated machine
CN106290375A (en) * 2016-07-14 2017-01-04 北京航信增材科技有限公司 Based on selective laser sintering technology contactless in line defect automatic checkout system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108344716A (en) * 2018-01-08 2018-07-31 天长市嘉瑞包装材料有限公司 A kind of verifying attachment of medical respiration bag
CN109596054A (en) * 2019-02-01 2019-04-09 东莞中科蓝海智能视觉科技有限公司 The size detection recognition methods of strip workpiece
CN113552131A (en) * 2021-06-03 2021-10-26 揭阳市群星机械股份有限公司 Patch bag making quality detection method based on machine vision
CN113552131B (en) * 2021-06-03 2024-03-15 揭阳市群星机械股份有限公司 Patch bag making quality detection method based on machine vision
EP4198501A1 (en) * 2021-12-16 2023-06-21 Pacraft Co., Ltd. Bag processing apparatus

Also Published As

Publication number Publication date
CN107014821B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN107014822A (en) A kind of non-woven fabrics gauze mask defective vision detecting system and method
CN107014821A (en) A kind of plastics valve bag detecting system and method
CN108548820B (en) Cosmetic paper label defect detection method
CN104992449B (en) Information identification and surface defect online test method based on machine vision
CN101281597B (en) Apparatus and method for on-line real time capturing and recognizing product package pattern identification information
CN100593716C (en) On-line detecting method of machine vision system for printed calico flaw
CN107014818A (en) A kind of laser carving defective vision detecting system and method
CN104297255B (en) A kind of dixie cup defective vision detection method and system and device
CN104318573B (en) Label defect inspection method
CN104360501A (en) Visual detection method and device for defects of liquid crystal display screen
WO2020103324A1 (en) On-line mask detection system and method
CN111982921A (en) Hole defect detection method and device, conveying platform and storage medium
CN109472271A (en) Printed circuit board image contour extraction method and device
CN110096980A (en) Character machining identifying system
CN112862773A (en) Shaving board image defect classification detection method and device
CN113838043A (en) Machine vision-based quality analysis method in metal foil manufacturing
CN114235837A (en) LED packaging surface defect detection method, device, medium and equipment based on machine vision
CN107247057B (en) Method for detecting defects of production date on surface of bottle cap
CN106093051A (en) Paper roll tangent plane burr detection method based on machine vision and device
CN105699386B (en) A kind of automatic cloth inspection labeling method using contact-type image sensor
JP7277118B2 (en) Quality judgment device
TWI788175B (en) Leather defect detection system
CN210604354U (en) Cloth pattern and character online acquisition device
CN108020550A (en) Application process of the electronics images capture technique in industrial product quality inspection
CN116256366A (en) Chip defect detection method, detection system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant