CN102682293B - Method and system for identifying salient-point mould number of revolution-solid glass bottle based on images - Google Patents

Method and system for identifying salient-point mould number of revolution-solid glass bottle based on images Download PDF

Info

Publication number
CN102682293B
CN102682293B CN 201210148078 CN201210148078A CN102682293B CN 102682293 B CN102682293 B CN 102682293B CN 201210148078 CN201210148078 CN 201210148078 CN 201210148078 A CN201210148078 A CN 201210148078A CN 102682293 B CN102682293 B CN 102682293B
Authority
CN
China
Prior art keywords
image
mould
salient point
point
salient
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.)
Expired - Fee Related
Application number
CN 201210148078
Other languages
Chinese (zh)
Other versions
CN102682293A (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.)
Shandong University
Original Assignee
Shandong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University filed Critical Shandong University
Priority to CN 201210148078 priority Critical patent/CN102682293B/en
Publication of CN102682293A publication Critical patent/CN102682293A/en
Application granted granted Critical
Publication of CN102682293B publication Critical patent/CN102682293B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method and system for identifying a salient-point mould number of a revolution-solid glass bottle based on images. The method comprises the following steps of: 1) rotating the to-be-identified glass bottle on a turn table, and triggering a camera to collect a panoramic image containing a pitting mould number area by virtue of a photoelectric sensor and a rotary encoder;2) preprocessing the collected image to improve the quality of the image; 3) on the basis of smoothening the image rapidly by virtue of an integral image, segmenting the image by virtue of a dynamic threshold, and carrying out morphologic processing on the image to improve the segmentation effect, screening salient points of a mould according to the features (such as shapes, area and coordinates and the like) of the salient points of the mould, and extracting the coordinates of each salient point; 4) according to the distance relationships among the salient points, calculating corresponding symbolic expressions; and 5) inquiring a glass bottle mould code table, and determining the mould number according to the symbolic expressions obtained in the step 4). According to the invention, lightpaths are transformed by a mirror, thereby satisfying the needs on the space layout and adjustment of equipment; the collection of the high-definition salient-point images of the mould is ensured; and the identification system is simple in structure, low in cost, high in precision, high in speed, and easy to popularize and use.

Description

The salient point mould recognition methods of image-based revolution vial and system thereof
Technical field
The present invention relates to the mould recognition methods of a kind of revolution vial salient point and system, relate in particular to a kind of image-based revolution vial salient point mould recognition methods and system.
Background technology
The vial of different size is made by different moulds and production procedure, near the bottle end root salient point mould number is arranged, and corresponding different moulds of different salient point permutation and combination number by mold code table inquiry decoding, can be identified mould number.Such as artificial interpretation, then efficient is low, even erroneous judgement.
For the square glass bottle, can be taken pictures by the front, through image recognition mould number.But for the revolution vial, as: beer bottle.Perspective during because of imaging changes, and accurately gathers salient point very difficult.In addition, vial is being produced conveyer line, because of the close bottle of a salient point end, the implantation of devices such as camera, light source, Existential Space restricted problem.
Consult the national patent storehouse, existing " automatic recognition system of point mold code of glass bottle/jar " (application number: 200920226221.5) utility model patent, but this patent is with laser sensor and single-chip microcomputer, during laser process point-like mould, light intensity changes, and the sensor make-and-break signal is identified mould number, when practical operation, a code-point easily occurs and make mistakes, cause the whole mould situation that number identification makes mistakes.
Summary of the invention
The objective of the invention is in order to overcome the deficiencies in the prior art, a kind of image-based revolution mould for glass bottle recognition methods and system thereof are provided, it has advantages of the problem that solves simultaneously device layout space constraint and high-precision mold Real time identification.
To achieve these goals, the present invention adopts following technic relization scheme:
A kind of image-based revolution vial salient point mould recognition system, it comprises the LED area source, rotation platform, rotary encoder, photoelectric sensor, ccd video camera, level crossing, product travelling belt, wherein, rotation platform is connected with rotary encoder, the rotation platform rear is provided with the LED area source, product travelling belt and rotation platform join, the oblique the place ahead of rotation platform is provided with ccd video camera, be provided with level crossing between ccd video camera and the product travelling belt, be provided with photoelectric sensor in the opposite side of product travelling belt, oblique the place ahead of rotation platform.
The recognition methods of a kind of image-based revolution vial salient point mould the steps include:
1) be guided out the vial image by level crossing, by photoelectric sensor and rotary encoder, trigger line frequency and frame frequency image acquisition, control gathers slightly many survey faces of one week of vial, that is: vial rotation 365 degree are to 370 degree; Shooting comprises convex dot shape mould number district's close-up view;
2) carry out quick filter and noise suppression preprocessing to gathering the mould image, improve picture quality;
3) utilize dynamic thresholding method, to Image Segmentation Using, learn with the burn into expansion form again and process, improve segmentation effect, utilize shape corresponding to salient point, area, coordinate Feature Selection to go out salient point, extract the salient point coordinate;
4) according to the die point coordinate, calculate adjacent bump pitch from, draw mould character expression corresponding to die point; Because each vial orientation is random on the travelling belt, the situation that continuous point-like mould number is truncated can appear, and will block die point and reconnect;
5) the inquiry mould code table that prestores identifies mould corresponding to each salient point number, provides the mould number.
In the described step 3): utilize integrogram mean filter method to former figure filtering, try to achieve the average image, then former figure and the average image are subtracted each other and obtain error image, error image is carried out dynamic threshold segmentation, obtain the binary segmentation image.
In the described step 4), with blocking the method that die point reconnects be: for row's mould salient point, distance between its 2 left and the rightest end points all is 13 times of minimum adjacent bump pitch, and the spacing maximum between the adjacent salient point also only has the situation of 3 times of adjacent spacings of minimum to occur; Distance must be die point to have occurred to block in gathering image greater than the situation of 3 times of adjacent spacings of minimum between the salient point if find to occur in gathering image, can only be from breaking when blocking with originally continuous salient point; To occur this moment die point block before and character string corresponding to salient point that from image, read afterwards be recorded in respectively in first and second character strings, be combined into a new character strings by second character string and first character string, from new character strings, take out the character expression corresponding to salient point of 13 correspondences, thereby just can inquire about the mould code table with it, try to achieve mould number.
The present invention adopts the polishing of LED area source, uses the optics shift theory, and by photoelectric sensor and rotary encoder location, ccd video camera gathers vial panorama picture, can keep the cross ratio invariability of mould salient point.By image processing algorithm, first positioning convex point zone, the pre-service such as rapid image filtering improves quality again, and then split image extracts the salient point position relationship, inquires about at last the mould code table, identifies mould number.
Beneficial effect of the present invention:
1) adopts ccd video camera and image processing algorithm, realize convolution vial salient point mould Real time identification;
2) vial rotates a circle manyly, by the rotary encoder pulse signal CCD camera frame frequency trigger pip is set, and guarantees to collect whole salient point information, has cross ratio invariability between image bumps and the actual salient point simultaneously;
3) adopt integrogram quick filter method to realize quick filter, then carry out dynamic threshold segmentation;
4) the inquiry mould code table that prestores apart from corresponding symbol code, identifies mould number by the mould salient point;
5) by minute surface conversion light path, satisfy device space layout and regulatory demand;
6) cooperating of LED area source and CCD camera, guarantee to gather high-resolution mould salient point information;
7) recognition system is simple in structure, and cost is low, and precision is high, and speed is fast, is easy to promote the use of.
Description of drawings
Fig. 1 is image-based revolution vial salient point mould recognition system schematic diagram;
Fig. 2 is vial salient point mould photo;
Fig. 3 is that CCD gathers the salient point areal map;
Fig. 4 a is the continuous situation of mould salient point;
Fig. 4 b is the situation that the mould salient point is truncated.
Among the figure, the 1:LED area source; 2: rotation platform; 3: rotary encoder; 4: photoelectric sensor; 5: vial; The 6:CCD video camera; 7: level crossing; 8: the product travelling belt.
Embodiment
The invention will be further described below in conjunction with accompanying drawing and embodiment.
As shown in Figure 1, a kind of image-based revolution vial salient point mould recognition system, it comprises LED area source 1, rotation platform 2, rotary encoder 3, photoelectric sensor 4, ccd video camera 5, level crossing 7, product travelling belt 8, wherein, rotation platform 2 is connected with rotary encoder 3, rotation platform 2 rears are provided with LED area source 1, product travelling belt 8 joins with rotation platform 2, rotation platform 2 oblique the place aheads are provided with ccd video camera 6, be provided with level crossing 7 between ccd video camera 6 and the product travelling belt 8, at the opposite side of product travelling belt 8, oblique the place ahead of rotation platform 1 is provided with photoelectric sensor 4.
LED area source 1 irradiation vial 5 to be measured, vial 5 is in rotation platform 2 rotations, by rotary encoder 3 position rotating information, by optical flat mirror 7 first to vial 5 imagings, vial 5 reimagings in 6 pairs of minute surfaces of ccd video camera, pass through image processing algorithm, point-like mould zone, location, because the difference of salient point transmittance, gather image bumps and non-salient point corresponding grey scale and have difference, extract thus each salient point coordinate, utilize the salient point position relationship, inquiry mould code table can identify salient point mould number.
Actual step of the present invention:
1) vial 5 is sent on the rotation platform 2, photoelectric sensor 4 and rotary encoder 3 orientation triggering collected by cameras comprise the panorama sketch of mould salient point;
2) according to actual observation and statistical study, positioning convex point mould regional extent;
3) to gathering the pre-service such as image strengthens, improve picture quality;
4) with integrogram fast filtering method smoothed image, then carry out image segmentation with dynamic thresholding method;
5) process with morphology, improve segmentation effect, utilize the features such as shape, area, coordinate of mould salient point, screening extracts each die point coordinate;
6) by each die point coordinate, calculate distance between the consecutive point, draw mould character expression corresponding to salient point.Because each vial orientation is random on the travelling belt, the situation that continuous point-like mould number is truncated can appear.Analyzing on the mould salient point feature base, the exploitation recognizer will be blocked die point and be reconnected.
7) inquiry mould code table identifies mould number, provides the mould number.
The key of image-based revolution vial salient point mould recognition methods is the range information that accurately extracts between each salient point of vial, and inquiry mould code table (as shown in table 1) is tried to achieve corresponding mould number.
Figure BDA00001632829800041
1. based on the mean filter principle of integrogram
The integrogram I of image P refers to, is the point of (x, y) for coordinate in the image, its I (x, y) equal in (x, y) among P point rectangular area, upper left side all the pixel values of point with, that is:
I ( x , y ) = Σ i ≤ x , j ≤ y P ( i , j ) - - - ( 1 )
Filtering with default filter kernel coefficient matrix, is carried out convolution algorithm with image usually.Generally getting the filter window length of side is the filtering core of odd number (width W=2*h+1, height H=2*h+1, h, w are filter window half height and half-breadth, get positive integer).Filtering operation can be expressed as follows:
P ′ ( x 0 , y 0 ) = Σ ( x , y ) ∈ D C ( x + w - x 0 , y + h - y 0 ) P ( x , y ) - - - ( 2 )
P ' (x in the formula 0, y 0) be (x in the image after the filtering 0, y 0) pixel value of position.
The filtering core element is constant during mean filter, gets C (i, j)=1/ (W*H), and (2) can be reduced to:
P ′ ( x 0 , y 0 ) = Σ ( x , y ) ∈ D 1 W · H P ( x , y )
= 1 W · H Σ ( x , y ) ∈ D P ( x , y ) - - - ( 3 )
Integration item in the following formula
Figure BDA00001632829800055
In the expression original image in the D of rectangular area the gray-scale value of each pixel and, it can be calculated by integrogram, so,
P ′ ( x 0 , y 0 ) = 1 W · H [ I ( x 0 + w , y 0 + h ) - I ( x 0 + w , y 0 )
- I ( x 0 , y 0 + h ) + I ( x 0 - w , y 0 - h ) ] - - - ( 4 )
By (4) as seen, only need carry out integrogram I (x, y), the average computing is converted into the simple operation of the integrated value in the calculation of filtered window.Owing to need not every pixel double counting weighted sum, operand no longer changes with the filter window size, has improved operation efficiency.
2. dynamic threshold segmentation method
Dynamic threshold segmentation carries out threshold operation with the local mean value of object pixel as Rule of judgment, can be described as:
f(x,y)=(f(x,y)-mean≥c) foregroud:background (5)
F (x in the formula, y) be (x in the image, y) pixel value of position, mean refers to the pixel local mean value of image slices vegetarian refreshments, the threshold value of c for setting, foregroud and background are respectively display foreground and the background gray levels of setting, f ' (x, y) be the pixel value of (x, y) position in the segmentation result image.During practical operation, with integrogram mean filter method the average image is tried to achieve in former figure filtering, then former figure and the average image are subtracted each other and obtain error image, error image is carried out (5) formula carry out Threshold segmentation, obtain dynamic binary segmentation image.
3. block the join algorithm of die point
After studying various mould for glass bottle salient points, find: for row's mould salient point, distance between its 2 left and the rightest end points all is 13 times of minimum adjacent bump pitch, and the spacing maximum between the adjacent salient point also only has the situation of 3 times of adjacent spacings of minimum to occur.Distance must be die point to have occurred to block in gathering image greater than the situation of 3 times of adjacent spacings of minimum between the salient point if find to occur in gathering image, can only be from breaking when blocking with originally continuous salient point.To occur this moment die point block before and character string corresponding to salient point that from image, read afterwards be recorded in respectively in first and second character strings, be combined into a new character strings by second character string and first character string, from new character strings, take out the salient point character expression of 13 correspondences.Thereby just can inquire about the mould code table with it, try to achieve mould number.
Although above-mentionedly by reference to the accompanying drawings the specific embodiment of the present invention is described; but be not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various modifications that creative work can make or distortion still in protection scope of the present invention.

Claims (3)

1. the recognition methods of an image-based revolution vial salient point mould recognition system, described system comprises the LED area source, rotation platform, rotary encoder, photoelectric sensor, ccd video camera, level crossing, the product travelling belt, wherein, rotation platform is connected with rotary encoder, the rotation platform rear is provided with the LED area source, product travelling belt and rotation platform join, the oblique the place ahead of rotation platform is provided with ccd video camera, be provided with level crossing between ccd video camera and the product travelling belt, at the opposite side of product travelling belt, oblique the place ahead of rotation platform is provided with photoelectric sensor;
It is characterized in that, described recognition methods may further comprise the steps:
1) be guided out the vial image by level crossing, by photoelectric sensor and rotary encoder, trigger line frequency and frame frequency image acquisition, control gathers slightly many sides of one week of vial, that is: vial rotation 365 degree are to 370 degree; Shooting comprises convex dot shape mould number district's close-up view;
2) carry out quick filter and noise suppression preprocessing to gathering the mould image, improve picture quality;
3) utilize dynamic thresholding method, to Image Segmentation Using, learn with the burn into expansion form again and process, improve segmentation effect, utilize shape corresponding to salient point, area, coordinate Feature Selection to go out salient point, extract the salient point coordinate;
4) according to the die point coordinate, calculate adjacent bump pitch from, draw character expression corresponding to mould salient point; Because each vial orientation is random on the travelling belt, the situation that continuous point-like mould number is truncated can appear, and will block die point and reconnect;
5) the inquiry mould code table that prestores identifies mould corresponding to each salient point number, provides the mould number.
2. recognition methods as claimed in claim 1, it is characterized in that, in the described step 3): utilize integrogram mean filter method to former figure filtering, try to achieve the average image, then former figure and the average image are subtracted each other and obtain error image, error image is carried out dynamic threshold segmentation, obtain the binary segmentation image.
3. recognition methods as claimed in claim 1, it is characterized in that, above-mentioned steps 4) in, with blocking the method that die point reconnects be: for row's mould salient point, distance between its 2 left and the rightest end points all is 13 times of minimum adjacent bump pitch, and the spacing maximum between the adjacent salient point also only has the situation of 3 times of adjacent spacings of minimum to occur; Distance must be die point to have occurred to block in gathering image greater than the situation of 3 times of adjacent spacings of minimum between the salient point if find to occur in gathering image, can only be from breaking when blocking with originally continuous salient point; To occur this moment die point block before and character string corresponding to salient point that from image, read afterwards be recorded in respectively in first and second character strings, be combined into a new character strings by second character string and first character string, from new character strings, take out the salient point character expression of 13 correspondences, thereby just can inquire about the mould code table with it, try to achieve mould number.
CN 201210148078 2012-05-14 2012-05-14 Method and system for identifying salient-point mould number of revolution-solid glass bottle based on images Expired - Fee Related CN102682293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210148078 CN102682293B (en) 2012-05-14 2012-05-14 Method and system for identifying salient-point mould number of revolution-solid glass bottle based on images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210148078 CN102682293B (en) 2012-05-14 2012-05-14 Method and system for identifying salient-point mould number of revolution-solid glass bottle based on images

Publications (2)

Publication Number Publication Date
CN102682293A CN102682293A (en) 2012-09-19
CN102682293B true CN102682293B (en) 2013-10-23

Family

ID=46814189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210148078 Expired - Fee Related CN102682293B (en) 2012-05-14 2012-05-14 Method and system for identifying salient-point mould number of revolution-solid glass bottle based on images

Country Status (1)

Country Link
CN (1) CN102682293B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372633A (en) * 2016-09-07 2017-02-01 张勇 Liquefied petroleum gas storage bottle production tracking monitoring apparatus and method
CN109115803A (en) * 2017-06-22 2019-01-01 山东明佳科技有限公司 A kind of mold number coding is in ray imaging device, system and detection method
CN107610088B (en) * 2017-07-03 2021-05-04 刘胜贤 Circuit board identification method and system
CN108153229A (en) * 2017-12-31 2018-06-12 芜湖哈特机器人产业技术研究院有限公司 Product automatic identification alignment system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2705830C (en) * 2007-11-15 2018-03-13 Xtralis Technologies Ltd Particle detection
CN101819162A (en) * 2010-05-13 2010-09-01 山东大学 Empty bottle wall defect detection method and device

Also Published As

Publication number Publication date
CN102682293A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN104616275B (en) A kind of defect inspection method and device
CN104504388B (en) A kind of pavement crack identification and feature extraction algorithm and system
CN107133969B (en) A kind of mobile platform moving target detecting method based on background back projection
CN111753577B (en) Apple identification and positioning method in automatic picking robot
CN102646193B (en) Segmentation method of character images distributed in ring shape
CN103279791B (en) Based on pedestrian's computing method of multiple features
CN102930287B (en) A kind of detection number system and method for overlooking pedestrian
CN105160654A (en) Towel label defect detecting method based on feature point extraction
CN108416791A (en) A kind of monitoring of parallel institution moving platform pose and tracking based on binocular vision
CN103295016A (en) Behavior recognition method based on depth and RGB information and multi-scale and multidirectional rank and level characteristics
CN103530889A (en) Method for decoding coding mark points of measuring stick based on skeleton extraction
CN102682293B (en) Method and system for identifying salient-point mould number of revolution-solid glass bottle based on images
CN104361353A (en) Application of area-of-interest positioning method to instrument monitoring identification
CN109711256B (en) Low-altitude complex background unmanned aerial vehicle target detection method
CN103258201A (en) Form line extraction method integrating global information and local information
CN102509093A (en) Close-range digital certificate information acquisition system
CN109559324A (en) A kind of objective contour detection method in linear array images
CN103544491A (en) Optical character recognition method and device facing complex background
CN104700395A (en) Method and system for detecting appearance crack of structure
CN103455792A (en) Guest flow statistics method and system
CN104537342B (en) A kind of express lane line detecting method of combination ridge border detection and Hough transformation
CN103136525A (en) Hetero-type expanded goal high-accuracy positioning method with generalized Hough transposition
CN106530328A (en) Method for detecting and smoothly following moving object based on video images
CN103913149A (en) Binocular range finding system based on STM 32 single chip microcomputer and range finding method thereof
CN107264570A (en) steel rail light band distribution detecting device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131023

Termination date: 20140514