CN104438126A - Removal method of defective bottle parisons - Google Patents

Removal method of defective bottle parisons Download PDF

Info

Publication number
CN104438126A
CN104438126A CN201410766596.6A CN201410766596A CN104438126A CN 104438126 A CN104438126 A CN 104438126A CN 201410766596 A CN201410766596 A CN 201410766596A CN 104438126 A CN104438126 A CN 104438126A
Authority
CN
China
Prior art keywords
bottleneck
arrow
circle
outline
internal periphery
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
CN201410766596.6A
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.)
Tianjin Puda Software Technology Co Ltd
Original Assignee
Tianjin Puda Software 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 Tianjin Puda Software Technology Co Ltd filed Critical Tianjin Puda Software Technology Co Ltd
Priority to CN201410766596.6A priority Critical patent/CN104438126A/en
Publication of CN104438126A publication Critical patent/CN104438126A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention provides a removal method of defective bottle parisons. The removal method comprises the following steps: developing a circle positioning tool; before automatic detection, firstly collecting an image comprising an orifice of a bottle parison and displaying the image on a screen; dragging the circle positioning tool by using a mouse to position the outer contour of the orifice; dragging the circle positioning tool by using the mouse to position the inner contour of the orifice; during automatic detection, collecting an image comprising the orifice of the bottle parison; determining the inner and outer contours of the orifice of the bottle parison for the input original image; judging whether the orifice deforms or not or whether the inner and outer contours have gaps or not; and for the bottle parisons which do not meet the requirement, executing a removal operation in a downstream station of the station. According to the method provided by the invention, the defect of deformation at the orifice of the bottle parison and gaps of the inner and outer contours in the orifice can be quickly and accurately detected by using a screen tool, so that the defective bottle parisons can be removed.

Description

A kind of bottle base defective products elimination method
Art
The invention belongs to Digital Image Processing, relate to a kind of bottle base defective products elimination method.
Background technology
Bottle base in process of production, because injection machine injection moulding is bad or bottle base bottleneck is collided with, extrudes, and bottle base bottleneck can be caused to be out of shape or the inside and outside contour of bottleneck exists breach.
Summary of the invention
The object of this invention is to provide one and can detect bottle base bottleneck whether existing defects rapidly and accurately, and then to the method that substandard product is rejected.Technical scheme of the present invention is as follows:
A kind of bottle base defective products elimination method, comprises the following steps:
(1) a round orientation tool is developed: this instrument is a screen display instrument, comprise a circle, circumferentially be uniformly distributed multiple rectangle, the arrow overlapped with the normal of circle is provided with at the center of each rectangle, the direction of arrow can set, the position of this instrument can change under the dragging of mouse, be circumferentially provided with one for the dragging at mouse under can change the icon of the size of corresponding circle; The number of rectangle can change, division more, and accuracy of detection is higher.
(2) before automatically detecting, first gather the image that a width comprises bottle base bottleneck, and on screen, show this image;
(3) mouse drag circle orientation tool is utilized, move it the position of the bottle base bottleneck outline in image, the size changing circle makes it as far as possible identical with the size of bottle base bottleneck outline in image, make in arrow points circle, and determine suitable rectangle number, according to position and the size of determined round orientation tool, by 5 variable saves such as the home position of circle orientation tool, radius size, arrow number, arrow length and the directions of arrow in the array of outline location;
(4) mouse drag circle orientation tool is utilized, move it the position of the bottle base bottleneck Internal periphery in image, the size changing circle makes as far as possible identical with the size of bottle base bottleneck Internal periphery in image, makes outside arrow points circle, and determines suitable rectangle number; According to position and the size of determined round orientation tool, 5 variable saves such as the home position of circle orientation tool, radius size, arrow number, arrow length and the direction of arrow are saved in the array of Internal periphery location;
(5) when carrying out automatically detecting, under identical shooting condition and position, the image comprising bottle base bottleneck is gathered;
(6) to a former figure of input, outline contrast threshold is preset, by judging whether the contrast of bottleneck outline and background reaches outline contrast threshold, and determine the outline of bottle base bottleneck, method is as follows:
Take out 5 variablees of the outline location array of preserving in step (3), the pixel coordinate of all arrow positions in round orientation tool is calculated by these 5 variographs, when searching in the direction of the arrow from arrow top, when judging that the absolute value that current pixel value deducts a pixel is more than or equal to set outline contrast threshold, record the position of this pixel, think that this pixel is the point on bottleneck excircle configuration, continue the point on the excircle configuration of the next arrow position of search;
(7) these bottleneck outline point Hough transformation methods found are carried out matching, obtain central coordinate of circle and the radius of bottleneck outline;
(8) ask ultimate range and the minimum range in the distance center of circle in outline point, obtain offset distance;
(9) if offset distance is greater than the threshold value of the deviation distance that outline is preset, then judge that bottleneck distortion or outline exist breach.
(10) to a former figure of input, Internal periphery contrast threshold is preset, by judging whether the contrast of bottleneck Internal periphery and background reaches Internal periphery contrast threshold, and determine the Internal periphery of bottle base bottleneck, method is as follows:
Take out 5 variablees of the Internal periphery location array of preserving in step (4), the pixel coordinate of all arrow positions in round orientation tool is calculated by these 5 variographs, when searching in the direction of the arrow from arrow top, when judging that the absolute value that current pixel value deducts a pixel is more than or equal to set Internal periphery contrast threshold, think that this pixel is the point on bottleneck Internal periphery, continue the point on the interior circle contour of the next arrow position of search;
(11) these bottleneck Internal periphery point Hough transformation methods found are carried out matching, obtain central coordinate of circle and the radius of bottleneck Internal periphery;
(12) ask ultimate range and the minimum range in the distance center of circle in Internal periphery point, obtain offset distance;
(13) if offset distance is greater than the threshold value of the deviation distance that Internal periphery is preset, then judge that bottleneck distortion or Internal periphery exist breach.
(14) only have when bottleneck inside and outside contour not existing defects time, think that bottleneck is certified products, otherwise think bottleneck existing defects;
(15) for undesirable bottle base, in the downstream process of described station, perform and reject operation.
The present invention utilizes a screen instrument, can detect that the distortion of bottle base bottleneck and bottleneck Internal periphery exist the defect of breach rapidly and accurately, be rejected, improve precision and efficiency of detecting to substandard product.。
Accompanying drawing explanation
The former figure of Fig. 1 (bottleneck outline is jagged, and Internal periphery does not have breach);
Fig. 2 circle orientation tool;
Bottleneck outline position, Fig. 3 circle orientation tool location;
Bottleneck Internal periphery position, Fig. 4 circle orientation tool location;
Fig. 5 bottleneck outline testing result.
Fig. 6 bottleneck Internal periphery testing result.
Fig. 7 (a) be mouse is moved to round orientation tool circumference near time the cursor shape that becomes;
Fig. 7 (b) is the shape that mouse becomes when moving near the little square icon on the right side of round orientation tool circumference.
Detailed description of the invention
Fig. 1 is the former figure collected, and below in conjunction with drawings and Examples, the present invention will be described.
(1) a round orientation tool is developed, as shown in Figure 2.This instrument is by a circle, form at some arrows of circumferentially decile, and the position of the circle of this instrument and size can change arbitrarily; On circle, the length of equidistributed arrow and number also can change (, between 20-50 pixel, number scope is between 4-360 for length range); The direction of arrow also can be decided to point in circle circle or from circle by selection and point in circle.
(2) detailed description of the invention of inside and outside contour detecting bottleneck is identical, and just detected parameters arranges difference, below be mainly described to detect bottleneck outline.
(3) size of circle orientation tool is arranged to position as shown in Figure 3 and size, near circumference mouse being moved to round orientation tool, now, cursor becomes the shape as Fig. 7 (a), press left mouse button and drag the position of mobile circle orientation tool left to position shown in Fig. 3, at this moment, the position of circle, equidistributed rectangle on circle and arrow also changes simultaneously; Time near little square (this little foursquare icon is the icon that can change radius of circle under the towing of mouse) on the right side of circumference mouse being moved to round orientation tool, now, cursor becomes the shape as Fig. 7 (b), press left mouse button and drag the size (size of some rectangles on circle and arrow can not be changed) changing circle orientation tool left, as shown in Figure 3;
The size of arrow and rectangle, when position of bottleneck is constant, can not impact detection.But each position in the picture of bottleneck may different (may have about 40 pixels beat), what at this moment need the length of arrow and rectangle to arrange is larger, can ensure like this to search the profile point on bottleneck outline exactly.In this example, the length of arrow is set to 32 pixels.Rectangle on circle and the number of arrow more, testing result is more accurate, and detection time is also longer, in this example, is set to 70.After accomplishing the setting up, by the home position of circle orientation tool, 5 variable saves such as radius size, arrow number, arrow length and the direction of arrow.
(4) because bottle base bottleneck is transparent, the contrast of the image obtained is lower, want more difficult for good for target and background segregation ratio by binary map, so directly to former figure process, former figure as shown in Figure 1, by judging whether the contrast of bottleneck outline and background reaches certain certain value, determines the outline of bottle base bottleneck.
Take out 5 variablees preserved in step (2), calculated the pixel coordinate of all arrow positions in round orientation tool by these 5 variographs.If the direction of arrow of circle orientation tool be from point in circle is round in, when searching in the direction of the arrow from arrow top, when judging that the absolute value that current pixel value deducts the difference of a pixel value is more than or equal to set outline contrast threshold, record the position of this pixel, think that this pixel is the point on bottleneck excircle configuration.Continue the point on the excircle configuration of the next arrow position of search.
If the direction of arrow of circle orientation tool points to circle in circle, when searching in the direction of the arrow from arrow top, when judging that the absolute value that current pixel value deducts the difference of a pixel value is more than or equal to set outline contrast threshold, record the position of this pixel, think that this pixel is the point on bottleneck excircle configuration.Continue the point on the excircle configuration of the next arrow position of search.
The bottleneck excircle configuration point that on the right side of the always first search of circle orientation tool, the arrow of little square region is determined, then searches for the bottleneck excircle configuration point of whole circumferentially arrow region counterclockwise.
In this example, the contrast threshold of bottleneck outline and background is set to 48, when searching in the direction of the arrow from arrow top, when the absolute value that current pixel value deducts the difference of a pixel value is more than or equal to 48, think that this point is the point on bottleneck outline.Under continuation search a bit, until search for all profile point obtained on bottleneck excircle configuration, the position of cross mark as medium and small in Fig. 5.
(5) these profile point Hough transformation methods are carried out matching, obtain central coordinate of circle and the radius of bottleneck outline.As shown in Figure 5, wherein the position of the little square mark at bottleneck center is central coordinate of circle position, and radius is 174 pixels.
(6) ask ultimate range and the minimum range in the distance center of circle in excircle configuration point, obtain offset distance.
Bottleneck occurs distortion or when there is breach, the pixel on bottleneck profile departs from the distance of standard round position will be larger.And in bottleneck profile point in recently and farthest 2 of the distance center of circle a bit, can be the maximum position of offset distance.By obtaining ultimate range and the minimum range in the distance center of circle in profile point, then asking for the difference (profile point departs from the distance of standard round) of ultimate range and minimum range and standard round radius respectively, being offset distance.When bottleneck occur distortion or when there is breach, the offset distance asked for will be larger.
Obtain the distance of each excircle configuration point to the center of circle, after relatively, obtain distance maximum and minimum of a value, be i.e. the ultimate range in the distance center of circle and minimum range in outline point.Required maximum and minimum of a value compare with radius respectively, and obtain the offset distance of outline point and standard round, gained offset distance is less, illustrate that excircle configuration is more near the mark circle.If offset distance exceedes default offset distance threshold value (camera resolution is 300,000, and offset distance threshold value is set to 8 pixels), bottleneck distortion is described or there is breach.
In this example, calculating outline point is 176.77 to the ultimate range in the center of circle, and minimum range is 163.08, as shown in the straight line of two in Fig. 5.The difference that can be obtained ultimate range and radius by above-mentioned numerical value is 2.77, and namely offset distance is 2.27.The difference of minimum range and radius is 10.92, and namely offset distance is 10.92.One of them offset distance has exceeded offset distance threshold value 8 pixel values preset, and the bottleneck distortion of this bottle base or bottleneck outline exist breach as seen.
(7) by the order of step (3) to step (6), detection bottleneck whether there is distortion or bottleneck Internal periphery exists breach.By the home position of circle orientation tool, radius size, arrow number, arrow length and the direction of arrow are stored in an array, and as shown in Figure 4, arrow number is set to 74, and arrow length is 32, and the direction of arrow is point to circle in circle.
The contrast threshold of bottleneck outline and background is set to 13, searches for by circle orientation tool the bottleneck Internal periphery point obtained, shown in the position of cross mark as medium and small in Fig. 6.The radius obtained by Hough transformation matching is 130 pixels, and calculating Internal periphery point is 134,37 to the ultimate range in the center of circle, and minimum range is 125.10, as shown in the straight line of two in Fig. 6.The difference that can be obtained ultimate range and radius by above-mentioned numerical value is 4.37, and namely offset distance is 4.37.The difference of minimum range and radius is 4.90, and namely offset distance is 4.90.Offset distance threshold value is set to 8 pixels, and two offset distances are all less than 8 pixels, as seen the bottleneck Internal periphery not existing defects of this bottle base.
(8) in this example, the bottleneck outline existing defects of bottle base, Internal periphery is existing defects not, to sum up, thinks the bottleneck existing defects of this bottle base.
(9) for undesirable bottle base, perform in downstream process and reject operation, perform the method rejecting operation as follows:
Bottle base sequentially passes through photoelectric sensor, industrial camera and rejecting magnetic valve on a moving belt.Distance d1 between photoelectric sensor and industrial camera is about 50cm, and the distance d2 rejected between magnetic valve and industrial camera is about 400cm, and light source distance bottle 1cm, camera distance bottle about 10m, the angle of inclination of camera is about 30 °.
When bottle base is through photoelectric sensor, photoelectric sensor sends a signal to PLC and records current time t, take t as starting point, and after time delay a period of time t1, PLC notifies that camera is taken pictures and detects.Take t as starting point, after time delay a period of time t2, when arriving rejecting position, PLC notifies that bad bottle is rejected by magnetic valve.Wherein, t1=d1/s, t2=d2/s, s are the movement velocity of conveyer belt.

Claims (1)

1. a bottle base defective products elimination method, comprises the following steps:
(1) a round orientation tool is developed: this instrument is a screen display instrument, comprise a circle, circumferentially be uniformly distributed multiple rectangle, the arrow overlapped with the normal of circle is provided with at the center of each rectangle, the direction of arrow can set, the position of this instrument can change under the dragging of mouse, be circumferentially provided with one for the dragging at mouse under can change the icon of the size of corresponding circle; The number of rectangle can change, division more, and accuracy of detection is higher.
(2) before automatically detecting, first gather the image that a width comprises bottle base bottleneck, and on screen, show this image;
(3) mouse drag circle orientation tool is utilized, move it the position of the bottle base bottleneck outline in image, the size changing circle makes it as far as possible identical with the size of bottle base bottleneck outline in image, make in arrow points circle, and determine suitable rectangle number, according to position and the size of determined round orientation tool, by 5 variable saves such as the home position of circle orientation tool, radius size, arrow number, arrow length and the directions of arrow in the array of outline location;
(4) mouse drag circle orientation tool is utilized, move it the position of the bottle base bottleneck Internal periphery in image, the size changing circle makes as far as possible identical with the size of bottle base bottleneck Internal periphery in image, makes outside arrow points circle, and determines suitable rectangle number; According to position and the size of determined round orientation tool, 5 variable saves such as the home position of circle orientation tool, radius size, arrow number, arrow length and the direction of arrow are saved in the array of Internal periphery location;
(5) when carrying out automatically detecting, under identical shooting condition and position, the image comprising bottle base bottleneck is gathered;
(6) to a former figure of input, outline contrast threshold is preset, by judging whether the contrast of bottleneck outline and background reaches outline contrast threshold, and determine the outline of bottle base bottleneck, method is as follows:
Take out 5 variablees of the outline location array of preserving in step (3), the pixel coordinate of all arrow positions in round orientation tool is calculated by these 5 variographs, when searching in the direction of the arrow from arrow top, when judging that the absolute value that current pixel value deducts a pixel is more than or equal to set outline contrast threshold, record the position of this pixel, think that this pixel is the point on bottleneck excircle configuration, continue the point on the excircle configuration of the next arrow position of search;
(7) these bottleneck outline point Hough transformation methods found are carried out matching, obtain central coordinate of circle and the radius of bottleneck outline;
(8) ask ultimate range and the minimum range in the distance center of circle in outline point, obtain offset distance;
(9) if offset distance is greater than the threshold value of the deviation distance that outline is preset, then judge that bottleneck distortion or outline exist breach.
(10) to a former figure of input, Internal periphery contrast threshold is preset, by judging whether the contrast of bottleneck Internal periphery and background reaches Internal periphery contrast threshold, and determine the Internal periphery of bottle base bottleneck, method is as follows:
Take out 5 variablees of the Internal periphery location array of preserving in step (4), the pixel coordinate of all arrow positions in round orientation tool is calculated by these 5 variographs, when searching in the direction of the arrow from arrow top, when judging that the absolute value that current pixel value deducts a pixel is more than or equal to set Internal periphery contrast threshold, think that this pixel is the point on bottleneck Internal periphery, continue the point on the interior circle contour of the next arrow position of search;
(11) these bottleneck Internal periphery point Hough transformation methods found are carried out matching, obtain central coordinate of circle and the radius of bottleneck Internal periphery;
(12) ask ultimate range and the minimum range in the distance center of circle in Internal periphery point, obtain offset distance;
(13) if offset distance is greater than the threshold value of the deviation distance that Internal periphery is preset, then judge that bottleneck distortion or Internal periphery exist breach;
(14) only have when bottleneck inside and outside contour not existing defects time, think that bottleneck is certified products, otherwise think bottleneck existing defects;
(15) for undesirable bottle base, in the downstream process of described station, perform and reject operation.
CN201410766596.6A 2014-12-10 2014-12-10 Removal method of defective bottle parisons Pending CN104438126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410766596.6A CN104438126A (en) 2014-12-10 2014-12-10 Removal method of defective bottle parisons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410766596.6A CN104438126A (en) 2014-12-10 2014-12-10 Removal method of defective bottle parisons

Publications (1)

Publication Number Publication Date
CN104438126A true CN104438126A (en) 2015-03-25

Family

ID=52885321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410766596.6A Pending CN104438126A (en) 2014-12-10 2014-12-10 Removal method of defective bottle parisons

Country Status (1)

Country Link
CN (1) CN104438126A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109975309A (en) * 2019-03-20 2019-07-05 上海大学 It is a kind of based on machine vision to the template matching detection method of six bridge defect of aluminium lid

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05157707A (en) * 1991-12-10 1993-06-25 Fuji Electric Co Ltd Appearance inspection method of bottle top
JPH08201042A (en) * 1995-01-30 1996-08-09 Hitachi Eng Co Ltd Method and apparatus for visual inspection of bottle cap
CN103606168A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Ring positioning tool for detecting defect image of sealing ring
CN103606169A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Method for detecting defects of bottle cap

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05157707A (en) * 1991-12-10 1993-06-25 Fuji Electric Co Ltd Appearance inspection method of bottle top
JPH08201042A (en) * 1995-01-30 1996-08-09 Hitachi Eng Co Ltd Method and apparatus for visual inspection of bottle cap
CN103606168A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Ring positioning tool for detecting defect image of sealing ring
CN103606169A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Method for detecting defects of bottle cap

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
束鑫: "形状分析新方法及其在图像检索中的应用研究", 《中国博士学位论文全文数据库 信息科技辑》 *
陈西广: "机器视觉技术在啤酒瓶在线监测系统中的应用研究", 《中国优秀学文论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109975309A (en) * 2019-03-20 2019-07-05 上海大学 It is a kind of based on machine vision to the template matching detection method of six bridge defect of aluminium lid

Similar Documents

Publication Publication Date Title
CN103604808B (en) A kind of bottle cap defective vision detection method
CN103606167B (en) A kind of outer bottle cap profile for defects detection determines method
WO2022027949A1 (en) Machine vision-based detecting method and system for glass bottle bottom defects
CN103606169A (en) Method for detecting defects of bottle cap
EP2743689B1 (en) Method and apparatus for inspecting glass products during the production
CN104502359A (en) Method for accurately detecting bottle blank and bottle opening defects
US10006836B2 (en) Method and apparatus for detecting defects on tyres in a tyre production process
US20140043472A1 (en) Tire surface shape measuring device and tire surface shape measuring method
CN102818544B (en) On-line measurement method for pitch circle center of automobile hub bolt hole and central eccentric distance of central hole
CN103499590A (en) Method and system for detecting and screening end defects in circular parts
JP2019027826A (en) Defect inspection method and defect inspection device
CN104316033A (en) Visual inspection system for automobile parts
CN104236458A (en) Plastic bottle geometric dimension online measuring system and measuring method thereof
CN104361605A (en) Method for detecting outer contour defects of blank bottle mouths
CN104259110A (en) Detection method of ceramic valve element
CN112819842B (en) Workpiece contour curve fitting method, device and medium suitable for workpiece quality inspection
CN104438126A (en) Removal method of defective bottle parisons
CN104463879A (en) Method for detecting inner contour defect of opening of semi-finished bottle
CN204007531U (en) A kind of piston ring intelligent comprehensive checking system
CN102339464A (en) Line search corner detection method
US20170160078A1 (en) Measuring apparatus, measuring method, and article manufacturing method
CN103606128B (en) A kind of method detecting outer circle of bottle cap burr
CN103604806B (en) A kind of method detecting O-ring seal defect
CN104477461B (en) A kind of liquid medicine filling substandard product elimination method
Lee et al. Classifying scratch defects on billets using image processing and SVM

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325