CN1438605A - Beer-bottle raised character fetching-identifying hardware system and processing method - Google Patents
Beer-bottle raised character fetching-identifying hardware system and processing method Download PDFInfo
- Publication number
- CN1438605A CN1438605A CN 03114541 CN03114541A CN1438605A CN 1438605 A CN1438605 A CN 1438605A CN 03114541 CN03114541 CN 03114541 CN 03114541 A CN03114541 A CN 03114541A CN 1438605 A CN1438605 A CN 1438605A
- Authority
- CN
- China
- Prior art keywords
- partiald
- character
- value
- neuron
- beer bottle
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
The hardware system comprises the beer bottle conveyer belt on which is set an operation desk, a glare shield is set above the desk, the video camera is set up around the shield, which is connected to the computer, the rotatable desk positioned on the center of the operation desk. The images of beer bottles are obtained for further processing, detecting and recognizing. Integrated system for collecting and processing images is built in order to detect and recognize the 'B' and the data on the beer bottle so as to classify the bottles and determine whether the bottle is qualified or not.
Description
One, affiliated technical field
The invention belongs to the Computer Applied Technology field, relate to beer bottle convexity character and extract and identification hardware system and disposal route, come whether to have on the detection and Identification beer bottle ' B ' word and date of manufacture to judge whether beer bottle is qualified by the theory and the method for utilization computer vision and pattern-recognition.
Two, background technology
Beer bottle is as a kind of container that can bearing certain pressure, and all more common bottle of its manufacturing process and compressive resistance has than big difference.Interrelated data shows, the turnout of China's beer bottle can only reach 20% of annual requirement at present, the cost that adds beer bottle is than higher, therefore no matter from the angle that satisfies productive capacity still from saving the angle of cost, recycle old beer bottle and be absolutely necessary.
For the beer bottle of retrieving, may have following problem: 1. it is too much to recycle number of times.Because beer bottle is a kind of pressure vessel, all can be during each can beer to wherein injecting high pressure.Each pressurization all can produce the inner structure of beer bottle and destroy.Test shows the standard beer bottle that is newly dispatched from the factory, and pressurizeing continuously, body will be broken after 11 times.Therefore, the industry standard regulation, the recovered frequency of beer bottle can not be above 6 times.This number of times is difficult to statistics, and the general provision beer bottle can only be in the use in two years of date of manufacture.2. some common bottle, its shape and outward appearance and beer bottle are approaching, but compressive resistance differs greatly than beer bottle, if use these bottles to take splendid attire beer, will increase the possibility of body fragmentation greatly.
For the standard beer bottle is recycled, China State Bureau of Standardization unites the manufacturing standard GB-4544-1996[30 that relevant beer bottle manufacturing enterprise has formulated beer bottle], wherein clearly stipulate, " every product should be equipped with special marker ' B ' in above 20mm scope at the bottom of the bottle; to show is the special-purpose bottle of splendid attire, and the mark font size is with No. 2 block letter (length * wide about 6mm * 3mm) that is as the criterion.Should in this zone, indicate simultaneously the mark of manufacturing enterprise, the year of production, month, season." this recommended standard rises on June 1st, 1999 and transfer compulsory standard to.
From reclaim bottle, sort out the bottle that meets GB, simultaneously underproof bottle is abandoned, if this work finish by the people because the beer bottle use amount is very big, will employ large quantities of full-time staff undoubtedly and carry out go-on-go work, this is a huge financial burden to enterprise.Utilizing computing machine to finish this work automatically, is very significant.
At present, also there is not similar system both at home and abroad.
Three, summary of the invention
The objective of the invention is under industrial environment, provide a kind of beer bottle convexity character to extract and identification hardware system and disposal route.This method beer bottle is made a video recording and handle obtaining image, character detects, the technology of character recognition, set up the system of an integrated image collection, image processing, to realize that " B " word on the beer bottle and date are carried out detection and Identification, reach the purpose that beer bottle is classified.
The required work of finishing of computing machine is: be partitioned into ' B ' word and the title of an emperor's reign of representing beer bottle from the image that collects, if the title of an emperor's reign that has ' B ' and mark in 2 years, then illustrates it is qualified beer bottle, otherwise is defective bottle.
Realize that technical scheme of the present invention is to solve like this: beer bottle convexity character extracts and the identification hardware system, comprise, one beer bottle travelling belt, be characterized in, the beer bottle travelling belt is provided with an operator's console, and the top of operator's console is provided with a light shield, is provided with a video camera around the light shield, video camera is connected with a computing machine, and the central authorities of operator's console also are provided with a universal stage.
The camera lens of described video camera can be the line array CCD camera.
Realize that above-mentioned beer bottle convexity character extracts and the disposal route of discerning hardware system, may further comprise the steps at least:
1) data acquisition
The data that will constantly be collected by video camera are sent in the computing machine by the PORT COM of data collecting card, and computing machine is the gray level image of a width of cloth 256*2048*8Bits with these data splicings, and image is reduced to the dot matrix of 180*2048;
2) pre-service
Adopt literal location partitioning algorithm, size is calculated maximal value and minimum value respectively in the subwindow of M*N in former figure, and that utilizes these two values to obtain not contain background then comparatively clearly wants sketch map;
3) Character segmentation
The figure that an above step obtains is cut apart;
(4) stroke is extracted
Employing is regarded the gray scale of gray level image as height based on the method for topographic structure (Topographic structures), treats and analysis image with the viewpoint of topographic relief;
Arbitrarily the topographic structure of any can be divided into: ridge, ditch, peak, paddy, saddle, slope, plane etc., with I (x, y) the expression digital picture converts it to regional area continuous model, the local consecutive image signal of remembering be f (x, y); Each facet comprises the space of several pixel coverages, can come match with cubic polynomial:
f(x,y)=k
1+k
2x+k
3y+k
4x
2+k
5xy+k
6y
2+k
7x
3+k
8x
2y+k
9xy
2+k
10y
3
By this model, can calculate single order, the second derivative of optional position
And have
Define the essential characteristic amount of each pixel below:
The gradient vector of f f
‖ f ‖ Grad
ω
(1)Vector of unit length when the secondary directional derivative has maximal value.
ω
(2)With ω
(1)The vector of unit length of quadrature.
λ
1At ω
(1)The value of the secondary directional derivative of direction,
λ
2At ω
(2)The value of the secondary directional derivative of direction,
f. ω
(1)At ω
(1)The value of a directional derivative of direction,
f. ω
(2)At ω
(2)The value of a directional derivative of direction,
Under the little surface model of match in the above, (x, secondary directional derivative y) is can to obtain f
In the formula, H is He Sai (Hessian) matrix of 2*2, is defined as:
Two eigenwerts of He Sai matrix are two extreme values of secondary directional derivative, and two proper vectors corresponding with them are that twice directional derivative got the direction vector of extreme value, promptly
H ω
(1)=λ
1ω
(1)
H ω
(2)=λ
1ω
(2)
So, can obtain all essential characteristic parameters of above-mentioned definition by eigenwert and the characteristic of correspondence vector of asking the He Sai matrix; Further comprehensive these parameters can be judged the topographic structure at this pixel place, and the topographic structure concrete determination methods relevant with the stroke extraction is as follows:
Peak: ‖ f ‖=0, λ
1<0, λ
2<0
Paddy: ‖ f ‖=0, λ
1>0, λ
2>0
Ridge: ‖ f ‖ ≠ 0, λ
1<0, f ω
(1)=0 or
‖ f ‖ ≠ 0, λ
2<0, f ω
(2)=0 or
‖f‖≠0,λ
1<0,λ
2=0
Saddle: ‖ f ‖=0, λ
1λ
2<0
Planar point: ‖ f ‖=0, λ
1=0, λ
2=0
Utilizing topographic structure to carry out stroke then extracts;
(5) character recognition
At first adopt projection-conversion coefficient method to extract feature to character;
If N is a dimension of picture, g (x) and g (y) are respectively the projection of figure on X-axis and Y-axis, they are carried out the Fourier conversion obtain K conversion coefficient.From K conversion coefficient g
k(k=0,1,2 ..., select M representational feature in K-1), make it satisfy between class distance and want in big, the class distance little, the selection of M will decide along with different identification situations, and it is different promptly represent digital M number with English;
Make g
Ki (j)Be the k time conversion coefficient of j sample of i class-letter, i be alpha code (i=1 ..., S), S is the total number of word of set of letters, P is a total sample number.w
kBe the mean value of the k time conversion coefficient, then
g
KiBe the mean value of the k time conversion coefficient of i class-letter
c
kIt is the discrete value of k conversion coefficient
Define the separability function Z of k conversion coefficient
kFor
Z
kBig more, corresponding conversion coefficient g with it
kClassification capacity is preferably arranged more.Z when obtaining different k
kNumerical value, select the Z of M numerical value maximum
k, and with and the k time conversion coefficient g of its correspondence
kFeature as classification;
Obtain after the characteristic of division, utilize BP neural network design Identity System;
Neural network is by being called neuronic independent processing unit and being connected the network that arc connects into and being formed, and network can be divided into several layers; The neuron of input information is formed input layer, and these neurons do not have input and connect arc; The neuron of output information is formed output layer, and it does not have output and connects arc; All the other neurons are the middle layer, and its neuron is called intrerneuron; The middle layer is called hiding layer again; Its connection mode has individual layer connection mode, multilayer connection mode and circular form connection mode;
(6) at last with feature as input, character is as output, for the different neural network of letter and number design, through study and training, just the character recognition on the image can be come out.
The specific algorithm of described Character segmentation may further comprise the steps:
Step 1: adopting the region adaptivity binaryzation is bianry image with image segmentation;
Step 2: eight connected chain code trackings are carried out in the zone, and record is each regional starting point (X down
Min, Y
Min), terminal point (X
Max, Y
Max) etc. information;
The gradation of image value mean value nGrayAverage of the boundary chain code correspondence in gradient map that adds up is if nGrayAverage<Thresh2 then deletes whole;
Step 3: utilize the geometrical constraint condition of relevant character, reject extraneous areas;
This step comprises following components:
3.1 if (H>HeightMax) or (H<HeightMin) or (W>WidthMax) or (W<WidthMin2) or ((W<WidthMin) and ((H>HeightMax) or (H<HeightMin)) then this piece are the noise piece, are deleted;
This condition is removed the wide or narrow candidate region of character duration, particularly for character " 1 ", is provided with two minimum thresholding WidthMin2 and Width, satisfies: WidthMin2<<desired width<WidthMin of character 1;
3.2 if (((W/H>Ratio1) and (Width<WidthMin3)) or (W/H<Ratio2)) think then and do not satisfy the scale bar part that this piece is the noise piece, is deleted;
3.3, should delete if the geometric center and the average geometric centre deviation of character are excessive;
Step 4: utilize the geometrical constraint condition of character, with the zone merging of stroke fracture;
This step comprises following components:
4.1 if | Y
Mid(i)-Y
Mid(j) |<Thresh7 and | X
Mid(i)-X
Mid(j) |<Thresh7 these two how much pieces so should belong to transverse breakage, with its merging;
4.2 if | Xmid (i)-Xmid (j) |<Thresh8
And then these two belong to vertical fracture, with its merging;
Repeat 4.1,4.2, till new merging does not take place;
Step 5: utilize the distance of adjacent how much interblocks to carry out the character boundary adjustment.
In system, it is as follows to utilize topographic structure to carry out the concrete steps that stroke extracts:
(1). the character picture that computed segmentation goes out one, second derivative.Their calculating can be passed through difference or local surface fitting method, and we have adopted the method for orthogonal polynomial here;
(2). according to eigenwert and the proper vector of calculating each some place curved surface He Sai matrix, judge the topographic structure type of this point;
(3). extract peak wherein, saddle point, valley point and the planar point that ridge point links to each other, as the stroke point.
The summation X of the input signal that described neuron is accepted
iStill can not reflect due various relations between the neuron input and output, for this reason, also need further to portray this relation, produce a new output with a characteristic function.The general characteristic function can be expressed as:
X
i=∑w
jx
j+S
i (1a)
x′
i=F(X
i-θ
i) (1b)
S wherein
iBe the feedback information of internal state, θ
iBe threshold value, F is the characteristic function of expression neuron activity;
When a plurality of neuron was arranged, available vector form was expressed as:
X′=F(XW+S) (2)
Wherein importing X is the N n dimensional vector n, and output X ' is the M n dimensional vector n.W is that N * M ties up matrix; Formula (2) means the network connection model input layer N neuron, and output layer has M neuron, and N internal feedback information is arranged, under the effect of characteristic function, by threshold value control output.
Four, description of drawings
Fig. 1 is system hardware structure figure of the present invention;
Fig. 2 is the beer bottle character picture (3 width of cloth) that common camera is gathered;
Fig. 3 is for using the image of beer bottle character picture behind medium filtering that line array CCD is gathered;
Fig. 4 is through pretreated image;
Fig. 5 is the Character segmentation result schematic diagram;
Fig. 6 regards the gray scale of gray level image as height, treats character topographic structure synoptic diagram with analysis image with the viewpoint of topographic relief; Wherein a is a gray level image, and b is the topomap that a fluctuating has order;
Fig. 7 is the result who utilizes the topographic structure stroke to extract, and wherein (a) is the gray-scale map image pattern, (b) is result figure;
The typical link model figure of Fig. 8 neural network;
Fig. 9 is neuronal structure figure.
Five, embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
Fig. 1 is that beer bottle convexity character extracts and identification hardware system structure synoptic diagram.Comprise that a beer bottle travelling belt 1, beer bottle travelling belt 1 are provided with an operator's console 2, the top of operator's console 2 is provided with a light shield 3, be provided with a video camera 5 around the light shield 3, video camera 5 is connected with a computing machine 6, and the central authorities of operator's console 2 also are provided with a universal stage 4.
The camera lens of video camera 5 can be the line array CCD camera.5.1 computer hardware device system
Wait to know bottle and be transferred to operator's console by travelling belt, wait to know bottle then and on universal stage, revolve and turn around, it is made a video recording, obtain the beer bottle character picture by computer-controlled line array CCD, after the process computer software was handled, beer bottle is divided three classes: a kind of was standard compliant bottle; A kind of is non-compliant bottle; At last a kind of is because some external conditions influence the bottle of refusing to know, then by manually discerning.As shown in Figure 1.2. computer software
(1) image acquisition
Fig. 2 is the beer bottle character pictures of several width of cloth by common camera collection.
By seeing among the figure, the image character that common camera collects is made up of the stroke of shade and brightness irregularities respectively, and background bright secretly inhomogeneous is for identification has brought very big difficulty.In order further to improve picture quality, reduce and disturb, accurately collect the character picture on the beer bottle, the inventor has adopted the line array CCD camera, stamps back of the body printing opacity simultaneously on through the beer bottle that cleans.Have only like this by the light source direct projection to those row just collected.After beer bottle transmits by travelling belt, on pallet, revolve and turn around, in rotary course, the line array CCD camera that is contained in the fixed position constantly sends the data that collect, PORT COM by data collecting card is sent in the main frame, is the gray level image of a width of cloth 256*2048*8Bits with these data splicings in main frame.Because the special marker of beer bottle is beaten in bottle end 20mm scope, in order to reduce follow-up operand, image is reduced to the dot matrix of 180*2048.
Fig. 3 is for using the image of beer bottle character picture behind medium filtering that line array CCD is gathered.
Character on glass is that the abutment surface convex-concave forms, and during optical imagery, the profile of character is the reflected light that relies on its surperficial varying strength, rather than relies on material that the different degrees of absorption of light are formed.Thereby for clear glass, the regional homogeneity of its gradation of image is very poor, and character shape is fracture and discontinuous shape, brings very big difficulty to subsequent treatment, adopts traditional image processing method to be difficult to obtain desirable effect.
(2) pre-service
Examine beer bottle characters in images feature, can notice, near stroke, in the very little zone, exist local brightness maximum value and minimal value.The bottom of beer bottle is thick than top simultaneously, transmittance is low, shows as background and has from top to bottom the gradual process of deepening transition gradually.According to above characteristics, we have designed a kind of new literal location partitioning algorithm, and its basic thought is that size is calculated maximal value and minimum value respectively in the subwindow of M*N in former figure, and that utilizes these two values to obtain not contain background then comparatively clearly wants sketch map.
Shown in Figure 4 is the result images that obtains after the process pre-service.As can be seen, stroke shows especially out, but still the interference that exists some to be caused by impurity and injurious surface mark, when gradual background is removed substantially, also brings the spinoff of stroke chap.But owing to the spacing broad between the character in this problem, can not produce adhesion phenomenon basically, therefore not influence following cutting operation.
(3) Character segmentation
Below, Fig. 4 that an above step obtains is cut apart.Because the original image gray-scale value that collects is less, so we have adopted a kind of dividing method that merges thought based on division.Cut apart and to utilize between the same row the relative information of character to remedy to cut apart the error that causes, so we needn't require separating of stroke and background very accurate.Specific algorithm is:
Step 1: adopting the region adaptivity binaryzation is bianry image with image segmentation.
Step 2: eight connected chain code trackings are carried out in the zone, and record is each regional starting point (X down
Min, Y
Min), terminal point (X
Max, Y
Max) etc. information.
Add up boundary chain code at gradient map I
dMiddle corresponding gradation of image value mean value nGrayAverage is if nGrayAverage<Thresh2 then deletes whole.
Step 3: utilize the geometrical constraint condition of relevant character, reject extraneous areas.This method comprises following components:
3.1 if (H>HeightMax) or (H<HeightMin) or (W>WidthMax) or (W<WidthMin2) or ((W<WidthMin) and ((H>HeightMax) or (H<HeightMin)) then this piece are the noise piece, are deleted.
This condition is removed the wide or narrow candidate region of character duration.Particularly for character " 1 ", the inventor is provided with two minimum thresholding WidthMin2 and Width, satisfies: WidthMin2<<desired width<WidthMin of character 1.
3.2 if (((W/H>Ratio1) and (Width<WidthMin3)) or (W/H<Ratio2)) think then and do not satisfy the scale bar part that this piece is the noise piece, should give deletion.
3.3, should delete if the geometric center and the average geometric centre deviation of character are excessive.
Step 4: utilize the geometrical constraint condition of character, with the zone merging of stroke fracture.
4.1 if | Y
Mid(i)-Y
Mid(j) |<Thresh7 and | X
Mid(i)-X
Mid(j) |<Thresh7 these two how much pieces so should belong to transverse breakage, so it should be merged.
4.2 if | Xmid (i)-Xmid (j) |<Thresh8
And then these two belong to vertical fracture, so it should be merged.
Repeat 4.1,4.2, till new merging does not take place.
Step 5: utilize the distance of adjacent how much interblocks to carry out the character boundary adjustment.
Through the processing of above algorithm, reached the purpose of removing the noise piece and repairing the fracture character, utilize step 5 intercharacter distance is determined and to be adjusted simultaneously.So far, our separating character more accurately.Fig. 5 is the result schematic diagram of Character segmentation:
Need to prove: used the priori threshold value in the top step in a large number, in fact this algorithm is also insensitive to the selection of threshold value, and threshold value can be specified in very wide scope, and the variation among a small circle of threshold value is very little to the segmentation result influence; Other it should be noted that: we have obtained more stable and neat character block position by above step, but also are not enough to extract stroke clearly, and this will have influence on final identification.So it is necessary taking more efficiently method to carry out the character extraction.To extract stroke with method more accurately in the next section.
(4) stroke is extracted
The most outstanding characteristics of literal are that brightness power on the stroke is irregular on the beer bottle, if want to extract stroke above it, the algorithm that uses gray scale thresholding or edge extracting simply is not all right.Usually the edge feature of asking for is dissatisfactory to the robustness of optical transform.When under the irradiate light of certain angle and intensity, the edge on the three-dimensional body may not occur, and false edge may occur yet, but also the phenomenon of edge shifting may occur.In beer bottle text detection process,, the image that collects is extracted the edge have very strong instability because literal reflects by illumination fully.
In the present invention, the applicant has adopted the method based on topographic structure (Topographic structures).The basic thought of this method is: regard the gray scale of gray level image as height, treat and analysis image with the viewpoint of topographic relief.As shown in Figure 6, a gray level image, if gray scale is regarded as height, it just is equivalent to the topomap that a fluctuating has order.
The basic thought of this method is: regard the gray scale of gray level image as height, treat and analysis image with the viewpoint of topographic relief.The topographic structure of any can be divided into arbitrarily: ridge, ditch, peak, paddy, saddle, slope, plane etc.They all are the descriptions of the certain relief fabric of gray scale landform, and these all are three-dimensional features.And these features do not change with illumination and reflection, have very strong robustness.
With I (x, y) expression digital picture.We can convert it to regional area continuous model, and under this model, image is made up of many level and smooth facets, is called little surface model.The local consecutive image signal of remembering be f (x, y).Each facet comprises the space of several pixel coverages, can come match with cubic polynomial:
f(x,y)=k
1+k
2x+k
3y+k
4x
2+k
5xy+k
6y
2+k
7x
3+k
8x
2y+k
9xy
2+k
10y
3
By this model, can calculate single order, the second derivative of optional position
And have
Define the essential characteristic amount of each pixel below:
The gradient vector of f f
‖ f ‖ Grad
ω
(1)Vector of unit length when the secondary directional derivative has maximal value.
ω
(2)With ω
(1)The vector of unit length of quadrature.
λ
1At ω
(1)The value of the secondary directional derivative of direction,
λ
2At ω
(2)The value of the secondary directional derivative of direction,
f. ω
(1)At ω
(1)The value of a directional derivative of direction,
f. ω
(2)At ω
(2)The value of a directional derivative of direction,
Under the little surface model of match in the above, (x, secondary directional derivative y) is can to obtain f
In the formula, H is He Sai (Hessian) matrix of 2*2, is defined as:
Two eigenwerts of He Sai matrix are two extreme values of secondary directional derivative, and two proper vectors corresponding with them are that twice directional derivative got the direction vector of extreme value, promptly
H ω
(1)=λ
1ω
(1)
H ω
(2)=λ
1ω
(2)
So, can obtain all essential characteristic parameters of above-mentioned definition by eigenwert and the characteristic of correspondence vector of asking the He Sai matrix.Further comprehensive these parameters can be judged the topographic structure at this pixel place, and the topographic structure concrete determination methods relevant with the stroke extraction is as follows:
Peak: ‖ f ‖=0, λ
1<0, λ
2<0
Paddy: ‖ f ‖=0, λ
1>0, λ
2>0
Ridge: ‖ f ‖ ≠ 0, λ
1<0, f ω
(1)=0 or
‖ f ‖ ≠ 0, λ
2<0, f ω
(2)=0 or
‖f‖≠0,λ
1<0,λ
2=0
Saddle: ‖ f ‖=0, λ
1λ
2<0
Planar point: ‖ f ‖=0, λ
1=0, λ
2=0
In system, it is as follows to utilize topographic structure to carry out the concrete steps that stroke extracts:
(1). the character picture that computed segmentation goes out one, second derivative.Their calculating can be passed through difference or local surface fitting method, and we have adopted the method for orthogonal polynomial here.
(2). according to eigenwert and the proper vector of calculating each some place curved surface He Sai matrix, judge the topographic structure type of this point.
(3). extract peak wherein, saddle point, valley point and the planar point that ridge point links to each other, as the stroke point.
The test findings of extracting the edge in this way is as follows:
Fig. 7 is the result who utilizes the topographic structure stroke to extract, and wherein (a) is gray-scale map image pattern (b) result figure;
By test findings as can be seen, can resist of the variation of beer bottle literal surface to a certain extent, successfully extract the character on the image because of brightness and the generation of angle of incidence of light degree by the method that adopts the basic sketch of landform to express.In this concrete application, effective than classical way.
(5) character recognition
At first adopt projection-conversion coefficient method to extract feature to character.If N is a dimension of picture, g (x) and g (y) are respectively the projection of figure on X-axis and Y-axis, they are carried out the Fourier conversion obtain K conversion coefficient.From K conversion coefficient g
k(k=0,1,2 ..., select M representational feature in K-1), make it satisfy between class distance and want in big, the class distance little, the selection of M will decide along with different identification situations, and it is different promptly represent digital M number with English.
Make g
Ki (j)Be the k time conversion coefficient of j sample of i class-letter, i be alpha code (i=1 ..., S), S is the total number of word of set of letters, P is a total sample number.w
kBe the mean value of the k time conversion coefficient, then
g
KiBe the mean value of the k time conversion coefficient of i class-letter
c
kIt is the discrete value of k conversion coefficient
Define the separability function Z of k conversion coefficient
kFor
Z
kBig more, corresponding conversion coefficient g with it
kClassification capacity is preferably arranged more.Z when obtaining different k
kNumerical value, select the Z of M numerical value maximum
k, and with and the k time conversion coefficient g of its correspondence
kFeature as classification.
Obtain after the characteristic of division, utilize BP neural network design Identity System.
The generation of neural network is from biologically obtaining inspiration, and primary functional elements of some simulation biological neuron is organized the formation network, and this network demonstrates the surprising characteristic close with human brain.
The typical a kind of form of neural network is called link model.It is by being called neuronic independent processing unit and being connected the network that arc connects into and being formed, and network can be divided into several layers.The neuron of input information is formed input layer, and these neurons do not have input and connect arc; The neuron of output information is formed output layer, and it does not have output and connects arc; All the other neurons are the middle layer, and its neuron is called intrerneuron.The middle layer is called hiding layer again.Its connection mode has individual layer connection mode, multilayer connection mode and circular form connection mode.Shown in Figure 8 is a two-layer link model.x
1, x
2..., x
nBe input neuron, z
1, z
2..., z
pBe intrerneuron, y
1, y
2..., y
mBe output neuron.Each connects arc and is connecting two neurons, and with a numerical value W
IjAs weights (strength of joint or memory intensity), as neuron x
iTo z
lOr z
lTo y
i, influence.What positive weights represented that the increase that influences, negative weights represent to influence weakens, and is similar to the enhancing of cynapse and weakens.Current existing artificial neural network, its link model are almost all based on above-mentioned model.
The output of each neuron computes is again its all neuronic inputs of one deck down, is used further to calculate their output.Each neuron all uses their output of identical algorithm computation.One neuronic output is calculated with the neuronic output that is connected to it is connected arc with these weights.Neuron is the basic calculating unit of neural network, generally is the non-linear unit of a plurality of inputs, an output, and an internal feedback and threshold value can be arranged.Fig. 9 is a complete neuron x
iStructure.S wherein
iBe the feedback information of internal state, θ
iBe threshold value, F is the characteristic function of expression neuron activity.The summation X of the input signal that common neuron is accepted
iStill can not reflect due various relations between the neuron input and output.For this reason, also need further to portray this relation, produce a new output with a characteristic function.The general characteristic function can be expressed as:
X
i=∑w
jx
j+s
i (1a)
x′
i=F(X
i-θ
i) (1b)
When a plurality of neuron was arranged, available vector form was expressed as:
X′=F(XW+S) (2)
Wherein importing X is the N n dimensional vector n, and output X ' is the M n dimensional vector n.W is that N * M ties up matrix.Formula (2) means the network connection model input layer N neuron, and output layer has M neuron, and N internal feedback information is arranged, under the effect of characteristic function, by threshold value control output.
Back-propagation algorithm is called for short the BP algorithm, and it is the algorithm of a supervised training multilayer neural network proposing of people such as Luo Manhatuo.Each training example calculates through twice transmission in network: a propagation calculating forward.From input layer, transmit each layer and after treatment, produces an output, and obtain one and should reality export and the error vector of the difference of required output; To input layer, utilize error vector that weights are successively revised from output layer to backpropagation calculating one time.The BP algorithm has very strong Fundamentals of Mathematics, and it has expanded the usable range of neural network, has produced the example of many application success.The typical structural drawing of BP algorithm is identical with Fig. 8.
BP learning algorithm requirement neuron behavior function can be little.Therefore, there are many functions to can be used as characteristic function.As Sigmoid logic behavior function
X wherein
i=∑ w
Ijx
i, can meet this requirement, its partial derivative is:
The purpose of training is that the connection arc weights of network are adjusted, and makes that network can produce a required output vector when using an input vector.The scope of training is composed of by the target vector of an input vector and required output, and both are called as " training to " together, and many training are trained the example collection to forming.
When beginning to train, the necessary initialization of whole weights of network is traditionally arranged to be little random number.This can guarantee that not getting maximal value because of weights makes network saturated or abnormal conditions occur.
The training step of BP algorithm is as follows:
(1) concentrates from the training example that to get a training right, the input of input vector as network;
(2) computational grid output vector;
(3) mistake between computational grid output vector and training centering target vector;
(4) again from the output layer backwards calculation to first middle layer, adjust network weight to the direction that reduces errors;
(5) each example in the training set is repeated above-mentioned (1)-(4) step, until the mistake minimum of whole training.
After the study, network is done the identification time spent, only uses (1), (2) step, and (3), (4) go on foot from output layer, the use alternative manner, backwards calculation is till first middle layer always.It calculates presses Delta rule distortion weights adjustment equation
w
Ij(n+1)=w
Ij(n)+η δ
jX '
j(4) carry out, wherein
w
Ij(n) be the weights of neuron i to the n time change of neuron j;
X '
jOutput (also available input x in the equation for neuron j
jFor it);
η is the learning rate constant;
δ
jMistake for neuron j.
What the BP algorithm adopted is to expand the Delta rule, investigates the mistake quadratic sum
In learning process, carry out in the mode that reduces E as quickly as possible.Generally whether it depends in the weights space and searches for along gradient direction.Make it finally to reach convergence for improving weights or threshold value, use by a certain percentage
Adjust weight w
Ij, w
IjVariable quantity Δ w
IjExpression:
Because of the mistake quadratic sum by output x '
iExpression, and x '
jRepresent (seeing 3 formulas), partial derivative by neuronic non-linear output again
Available following formula calculates
Again
So have
As definition
Δ w then
Ij=η δ
jx
iThis expression formula is quite analogous to the expression formula of Delta rule.Now calculate
When the j layer is output layer, get by formula (5) and characteristic function
Output layer j has formula
When j is the middle layer, have
At this moment
This explanation will be according to the Delta result of last layer to the neuron Delta rule in middle layer.Therefore, from top output layer, calculate with formula (6), subsequent step is propagated this Delta with formula (7) and is calculated, until bottom.
Specifically, the Delta rule that expands in the BP algorithm when the neuron behavior function adopts formula (3) is represented with following two formulas:
Output layer, i.e. x
iDuring for output neuron
Middle layer, i.e. x
iDuring for intrerneuron here subscript k refer to the whole neuron index bounds of last layer of neuron j.
Above-mentioned formula (7) has been arranged, can use formula (4) to realize adjusting output layer now and connect the arc weights, and then gone back with being connected the propagation downwards of the neuronic δ value of output layer, calculated each middle layer δ value with formula (7) with these weights.The δ value has been arranged, used formula (4) to adjust middle layer numerical value one by one, until input layer.The BP algorithm is to scan forward and the process that combines of scanning backward.
At last with feature as input, character is as output, for the different neural network of letter and number design, through study and training, just the character recognition on the image can be come out.
Claims (6)
1. a beer bottle convexity character extracts and the identification hardware system, comprise, one beer bottle travelling belt [1], it is characterized in that, beer bottle travelling belt [1] is provided with an operator's console [2], and the top of operator's console [2] is provided with a light shield [3], is provided with a video camera [5] around the light shield [3], video camera [5] is connected with a computing machine [6], and the central authorities of operator's console [2] also are provided with a universal stage [4].
2. beer bottle convexity character as claimed in claim 1 extracts and the identification hardware system, it is characterized in that the camera lens of described video camera [5] can be the line array CCD camera.
3. realize that the described beer bottle convexity of claim 1 character extracts and the disposal route of discerning hardware system, it is characterized in that, may further comprise the steps at least:
1) data acquisition
The data that will constantly be collected by video camera are sent in the computing machine by the PORT COM of data collecting card, and computing machine is the gray level image of a width of cloth 256*2048*8Bits with these data splicings, and image is reduced to the dot matrix of 180*2048;
2) pre-service
Adopt literal location partitioning algorithm, size is calculated maximal value and minimum value respectively in the subwindow of M*N in former figure, and that utilizes these two values to obtain not contain background then comparatively clearly wants sketch map;
3) Character segmentation
The figure that an above step obtains is cut apart;
4) stroke is extracted
Employing is regarded the gray scale of gray level image as height based on the method for topographic structure (Topographic structures), treats and analysis image with the viewpoint of topographic relief;
Arbitrarily the topographic structure of any can be divided into: ridge, ditch, peak, paddy, saddle, slope, plane etc., with I (x, y) the expression digital picture converts it to regional area continuous model, the local consecutive image signal of remembering be f (x, y); Each facet comprises the space of several pixel coverages, can come match with cubic polynomial:
f(x,y)=k
1+k
2x+k
3y+k
4x
2+k
5xy+k
6y
2+k
7x
3+k
8x
2y+k
9xy
2+k
10y
3
By this model, can calculate single order, the second derivative of optional position
And have
Define the essential characteristic amount of each pixel below:
The gradient vector of f f
‖ f ‖ Grad
ω
(1)Vector of unit length when the secondary directional derivative has maximal value.
ω
(2)With ω
(1)The vector of unit length of quadrature.
λ
1At ω
(1)The value of the secondary directional derivative of direction,
λ
2At ω
(2)The value of the secondary directional derivative of direction,
f. ω
(1)At ω
(1)The value of a directional derivative of direction,
f. ω
(2)At ω
(2)The value of a directional derivative of direction,
Under the little surface model of match in the above, (x, secondary directional derivative y) is can to obtain f
In the formula, H is He Sai (Hessian) matrix of 2*2, is defined as:
Two eigenwerts of He Sai matrix are two extreme values of secondary directional derivative, and two proper vectors corresponding with them are that twice directional derivative got the direction vector of extreme value, promptly
H ω
(1)=λ
1ω
(1)
H ω
(2)=λ
1ω
(2)
So, can obtain all essential characteristic parameters of above-mentioned definition by eigenwert and the characteristic of correspondence vector of asking the He Sai matrix; Further comprehensive these parameters can be judged the topographic structure at this pixel place, and the topographic structure concrete determination methods relevant with the stroke extraction is as follows:
Peak: ‖ f ‖=0, λ
1<0, λ
2<0
Paddy: ‖ f ‖=0, λ
1>0, λ
2>0
Ridge: ‖ f ‖ ≠ 0, λ
1<0, f ω
(1)=0 or
‖ f ‖ ≠ 0, λ
2<0, f ω
(2)=0 or
‖f‖≠0,λ
1<0,λ
2=0
Saddle: ‖ f ‖=0, λ
1λ
2<0
Planar point: ‖ f ‖=0, λ
1=0, λ
2=0
Utilizing topographic structure to carry out stroke then extracts;
5) character recognition
At first adopt projection-conversion coefficient method to extract feature to character;
If N is a dimension of picture, g (x) and g (y) are respectively the projection of figure on X-axis and Y-axis, they are carried out the Fourier conversion obtain K conversion coefficient.From K conversion coefficient g
k(k=0,1,2 ..., select M representational feature in K-1), make it satisfy between class distance and want in big, the class distance little, the selection of M will decide along with different identification situations, and it is different promptly represent digital M number with English;
Make g
Ki (j)Be the k time conversion coefficient of j sample of i class-letter, i be alpha code (i=1 ..., S), S is the total number of word of set of letters, P is a total sample number.w
kBe the mean value of the k time conversion coefficient, then
g
KiBe the mean value of the k time conversion coefficient of i class-letter
c
kIt is the discrete value of k conversion coefficient
Define the separability function Z of k conversion coefficient
kFor
Z
kBig more, corresponding conversion coefficient g with it
kClassification capacity is preferably arranged more.Z when obtaining different k
kNumerical value, select the Z of M numerical value maximum
k, and with and the k time conversion coefficient g of its correspondence
kFeature as classification;
Obtain after the characteristic of division, utilize BP neural network design Identity System;
Neural network is by being called neuronic independent processing unit and being connected the network that arc connects into and being formed, and network can be divided into several layers; The neuron of input information is formed input layer, and these neurons do not have input and connect arc; The neuron of output information is formed output layer, and it does not have output and connects arc; All the other neurons are the middle layer, and its neuron is called intrerneuron; The middle layer is called hiding layer again; Its connection mode has individual layer connection mode, multilayer connection mode and circular form connection mode;
6) at last with feature as input, character is as output, for the different neural network of letter and number design, through study and training, just the character recognition on the image can be come out.
4. beer bottle convexity character as claimed in claim 3 extracts the disposal route with the identification hardware system, it is characterized in that the specific algorithm of described Character segmentation may further comprise the steps:
Step 1: adopting the region adaptivity binaryzation is bianry image with image segmentation;
Step 2: eight connected chain code trackings are carried out in the zone, and record is each regional starting point (X down
Min, Y
Min), terminal point (X
Max, Y
Max) etc. information;
The gradation of image value mean value nGrayAverage of the boundary chain code correspondence in gradient map that adds up is if nGrayAverage<Thresh2 then deletes whole;
Step 3: utilize the geometrical constraint condition of relevant character, reject extraneous areas;
This step comprises following components:
3.1 if (H>HeightMax) or (H<HeightMin) or (W>WidthMax) or (W<WidthMin2 or ((W<WidthMin) and ((H>HeightMax) or (H<HeightMin)) then this piece are the noise piece, are deleted;
This condition is removed the wide or narrow candidate region of character duration, particularly for character " 1 ", is provided with two minimum thresholding WidthMin2 and Width, satisfies: WidthMin2<<desired width<WidthMin of character 1;
3.2 if (((W/H>Ratio1) and (Width<WidthMin3)) or (W/H<Ratio2)) think then and do not satisfy the scale bar part that this piece is the noise piece, is deleted;
3.3, should delete if the geometric center and the average geometric centre deviation of character are excessive;
Step 4: utilize the geometrical constraint condition of character, with the zone merging of stroke fracture;
This step comprises following components:
4.1 if | Y
Mid(i)-Y
Mid(j) |<Thresh7 and | X
Mid(i)-X
Mid(j) |<Thresh7 these two how much pieces so should belong to transverse breakage, with its merging;
4.2 if | Xmid (i)-Xmid (j) |<Thresh8
And then these two belong to vertical fracture, with its merging;
Repeat 4.1,4.2, till new merging does not take place;
Step 5: utilize the distance of adjacent how much interblocks to carry out the character boundary adjustment.
5. beer bottle convexity character as claimed in claim 3 extracts the disposal route with the identification hardware system, it is characterized in that, in system, it is as follows to utilize topographic structure to carry out the concrete steps that stroke extracts:
(1). the character picture that computed segmentation goes out one, second derivative.Their calculating can be passed through difference or local surface fitting method, and we have adopted the method for orthogonal polynomial here;
(2). according to eigenwert and the proper vector of calculating each some place curved surface He Sai matrix, judge the topographic structure type of this point;
(3). extract peak wherein, saddle point, valley point and the planar point that ridge point links to each other, as the stroke point.
6. beer bottle convexity character as claimed in claim 3 extracts the disposal route with the identification hardware system, it is characterized in that the summation X of the input signal that described neuron is accepted
iStill can not reflect due various relations between the neuron input and output, for this reason, also need further to portray this relation, produce a new output with a characteristic function; The general characteristic function can be expressed as:
X
i=∑w
jx
j+s
i (1a)
x′
i=F(x
i-θ
i) (1b)
S wherein
lBe the feedback information of internal state, θ
iBe threshold value, F is the characteristic function of expression neuron activity;
When a plurality of neuron was arranged, available vector form was expressed as:
X′=F(XW+S) (2)
Wherein importing X is the N n dimensional vector n, and output X ' is the M n dimensional vector n.W is that N * M ties up matrix; Formula (2) means the network connection model input layer N neuron, and output layer has M neuron, and N internal feedback information is arranged, under the effect of characteristic function, by threshold value control output.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031145418A CN1170251C (en) | 2003-03-14 | 2003-03-14 | Beer-bottle raised character fetching-identifying hardware system and processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031145418A CN1170251C (en) | 2003-03-14 | 2003-03-14 | Beer-bottle raised character fetching-identifying hardware system and processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1438605A true CN1438605A (en) | 2003-08-27 |
CN1170251C CN1170251C (en) | 2004-10-06 |
Family
ID=27674094
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031145418A Expired - Fee Related CN1170251C (en) | 2003-03-14 | 2003-03-14 | Beer-bottle raised character fetching-identifying hardware system and processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1170251C (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049743A (en) * | 2012-12-27 | 2013-04-17 | 天津普达软件技术有限公司 | Detection system and detection method for characters at bottom of bowl |
CN103472069A (en) * | 2012-06-07 | 2013-12-25 | 上海利控机械电子有限公司 | Foam detection machine and control method thereof |
CN103955684A (en) * | 2014-03-31 | 2014-07-30 | 小米科技有限责任公司 | Character extraction method, device and terminal |
CN104112130A (en) * | 2014-06-26 | 2014-10-22 | 小米科技有限责任公司 | Optical character recognition method and device |
CN104331688A (en) * | 2014-11-05 | 2015-02-04 | 中北大学 | Detonator shell dot character identifying method |
CN104463124A (en) * | 2014-12-11 | 2015-03-25 | 天津普达软件技术有限公司 | Milk box spray-printed character recognition method |
CN104794480A (en) * | 2014-12-11 | 2015-07-22 | 天津普达软件技术有限公司 | Method for eliminating milk boxes with defective printed characters |
CN105844271A (en) * | 2015-01-13 | 2016-08-10 | 征图新视(江苏)科技有限公司 | High-speed variable number character automatic extraction detection method and system |
CN106583271A (en) * | 2016-12-28 | 2017-04-26 | 天津普达软件技术有限公司 | Method for removing defective packing box with first line of ink-jet printed characters lacked |
CN107499904A (en) * | 2017-09-03 | 2017-12-22 | 东莞市为尔润机械设备科技有限公司 | A kind of elaborate servo panoramic table |
WO2019076180A1 (en) * | 2017-10-20 | 2019-04-25 | 山东新北洋信息技术股份有限公司 | Cargo identity information acquisition device and method |
CN109766890A (en) * | 2013-06-03 | 2019-05-17 | 支付宝(中国)网络技术有限公司 | Information identifying method, equipment and system |
CN112883965A (en) * | 2021-02-08 | 2021-06-01 | 中兴盛达电气技术(郑州)有限公司 | Date detection method on packaging vessel, electronic device and computer-readable storage medium |
CN115147617A (en) * | 2022-09-06 | 2022-10-04 | 聊城集众环保科技有限公司 | Intelligent sewage treatment monitoring method based on computer vision |
-
2003
- 2003-03-14 CN CNB031145418A patent/CN1170251C/en not_active Expired - Fee Related
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103472069A (en) * | 2012-06-07 | 2013-12-25 | 上海利控机械电子有限公司 | Foam detection machine and control method thereof |
CN103049743A (en) * | 2012-12-27 | 2013-04-17 | 天津普达软件技术有限公司 | Detection system and detection method for characters at bottom of bowl |
CN109766890A (en) * | 2013-06-03 | 2019-05-17 | 支付宝(中国)网络技术有限公司 | Information identifying method, equipment and system |
CN109766890B (en) * | 2013-06-03 | 2020-11-06 | 支付宝(中国)网络技术有限公司 | Information identification method, equipment and system |
CN103955684A (en) * | 2014-03-31 | 2014-07-30 | 小米科技有限责任公司 | Character extraction method, device and terminal |
CN103955684B (en) * | 2014-03-31 | 2017-07-28 | 小米科技有限责任公司 | character extracting method, device and terminal |
CN104112130A (en) * | 2014-06-26 | 2014-10-22 | 小米科技有限责任公司 | Optical character recognition method and device |
CN104112130B (en) * | 2014-06-26 | 2017-08-01 | 小米科技有限责任公司 | optical character recognition method and device |
CN104331688A (en) * | 2014-11-05 | 2015-02-04 | 中北大学 | Detonator shell dot character identifying method |
CN104463124A (en) * | 2014-12-11 | 2015-03-25 | 天津普达软件技术有限公司 | Milk box spray-printed character recognition method |
CN104794480A (en) * | 2014-12-11 | 2015-07-22 | 天津普达软件技术有限公司 | Method for eliminating milk boxes with defective printed characters |
CN105844271A (en) * | 2015-01-13 | 2016-08-10 | 征图新视(江苏)科技有限公司 | High-speed variable number character automatic extraction detection method and system |
CN106583271A (en) * | 2016-12-28 | 2017-04-26 | 天津普达软件技术有限公司 | Method for removing defective packing box with first line of ink-jet printed characters lacked |
CN107499904A (en) * | 2017-09-03 | 2017-12-22 | 东莞市为尔润机械设备科技有限公司 | A kind of elaborate servo panoramic table |
CN109697478A (en) * | 2017-10-20 | 2019-04-30 | 山东新北洋信息技术股份有限公司 | A kind of cargo identity information acquisition device and its control method |
WO2019076180A1 (en) * | 2017-10-20 | 2019-04-25 | 山东新北洋信息技术股份有限公司 | Cargo identity information acquisition device and method |
CN112883965A (en) * | 2021-02-08 | 2021-06-01 | 中兴盛达电气技术(郑州)有限公司 | Date detection method on packaging vessel, electronic device and computer-readable storage medium |
CN115147617A (en) * | 2022-09-06 | 2022-10-04 | 聊城集众环保科技有限公司 | Intelligent sewage treatment monitoring method based on computer vision |
Also Published As
Publication number | Publication date |
---|---|
CN1170251C (en) | 2004-10-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1438605A (en) | Beer-bottle raised character fetching-identifying hardware system and processing method | |
CN100345153C (en) | Man face image identifying method based on man face geometric size normalization | |
CN1139039C (en) | Methods for extraction and recognition of pattern in image, method for image abnormality juding, and memory medium with image processing programs | |
CN1276389C (en) | Graph comparing device and graph comparing method | |
CN1320485C (en) | Image searching device, key word providing method and program of same | |
CN1894703A (en) | Pattern recognition method, and device and program therefor | |
CN1945602A (en) | Characteristic selecting method based on artificial nerve network | |
CN1338703A (en) | Device for extracting drawing line from multiple value image | |
CN1152340C (en) | Fingerprint image enhancement method based on knowledge | |
CN1735907A (en) | Image analysis | |
CN1565000A (en) | Image processing method for appearance inspection | |
CN1742283A (en) | Method of optimizing a layout of selected parts to be cut | |
CN1710593A (en) | Hand-characteristic mix-together identifying method based on characteristic relation measure | |
CN1759804A (en) | Intelligent analyzing and differentiating method of herbalist doctor through integrated references form four parts of diagnosis | |
CN1310825A (en) | Methods and apparatus for classifying text and for building a text classifier | |
CN1830004A (en) | Segmentation and data mining for gel electrophoresis images | |
CN1973757A (en) | Computerized disease sign analysis system based on tongue picture characteristics | |
JP4581090B2 (en) | Method for automatically drawing a portion of interest by image processing, apparatus therefor, and recording medium recording a program | |
CN1588424A (en) | Finger print identifying method based on broken fingerprint detection | |
CN1653492A (en) | Device, method and program for identifying paper sheet | |
CN1871506A (en) | Method and device for inspecting surface to be inspected | |
CN1129331A (en) | Character recognition method and apparatus based on 0-1 pattern representation of histogram of character image | |
CN1310182C (en) | Method, device and storage medium for enhancing document, image and character recognition | |
CN1282943C (en) | Image processing method and device | |
CN1147652A (en) | Construction method of data base for writing identifying system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
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: 20041006 Termination date: 20110314 |