CN101354359A - Method for detecting, tracking and recognizing movement visible exogenous impurity in medicine liquid - Google Patents

Method for detecting, tracking and recognizing movement visible exogenous impurity in medicine liquid Download PDF

Info

Publication number
CN101354359A
CN101354359A CNA2008101431381A CN200810143138A CN101354359A CN 101354359 A CN101354359 A CN 101354359A CN A2008101431381 A CNA2008101431381 A CN A2008101431381A CN 200810143138 A CN200810143138 A CN 200810143138A CN 101354359 A CN101354359 A CN 101354359A
Authority
CN
China
Prior art keywords
image
target
value
frame
sigma
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008101431381A
Other languages
Chinese (zh)
Other versions
CN101354359B (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.)
Hunan University
Original Assignee
Hunan 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 Hunan University filed Critical Hunan University
Priority to CN2008101431381A priority Critical patent/CN101354359B/en
Publication of CN101354359A publication Critical patent/CN101354359A/en
Application granted granted Critical
Publication of CN101354359B publication Critical patent/CN101354359B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a detecting and recognition method of moveable and visible foreign matters and bubbles in liquid medicines, which is characterized in that the method comprises the following steps: (1) a continuous multi-frame image of a liquid medicine to be detected is obtained; (2) the image is preprocessed; (3) a moveable object is extracted, and a reinforced image is obtained; (4) the moveable object is partitioned as follows: an improved two-dimensional maximum entropy threshold partitioning algorithm is applied into the processing of the reinforced image and a two-dimensional histogram that is formed by grayscale and average neighborhood grayscale is adopted for choosing threshold, thus obtaining a partitioned image; (5) the movable object is traced; and (6) the image is identified and determined as follows: a movement trace of the object is obtained according to the tracing result, objects inducing foreign matters and bubbles are identified and distinguished by utilizing the continuity and the directivity of the object movement trace, and consequently whether the liquid medicine is qualified is finally determined. Under the condition of ensured algorithm precision, the detecting and recognition method of moveable and visible foreign matters and bubbles in liquid medicines adequately simplifies computation, improves the real-time property of the algorithm, greatly raises the accuracy of foreign matter and bubble identification in the liquid medicine, and lowers the false detection rate of the medicine.

Description

The detection tracking and the recognition methods of movement visible exogenous impurity in medicine liquid
Technical field
The invention belongs to Flame Image Process and technical field of automation, relate to the detection recognition methods of motion visible foreign matters and bubble in a kind of liquid drug.
Background technology
At present, widely used liquid drug comprises injection, infusion solutions, oral liquid, eye drops etc. in China, usually adopt the form can of vial or plastic bottle, these medicines are not good owing to filtering in process of production, reason such as collision when container cleans not good, encapsulation, can make visible foreign matters such as having chips of glass, suspension, hair in the soup, in order to detect in the liquid preparation after the can whether sneak into visible foreign matters, need carry out visible foreign matters to each bottle medicine and detect.China's pharmacopeia was promptly stipulated to carry out clarity from 1985 to the detection of this similar drug and is detected and the particulate matter inspection, and foreign matter in the medicine and particulate are carried out strictness control.On August 24th, 1999, national Bureau of Drugs Supervision formally prints and distributes the notice of relevant regulations " about the enforcement<GMP〉", explicitly calls for pharmaceutical producing enterprise must pass through GMP (good) authentication before the end of the year 2000." Chinese pharmacopoeia version in 2005 is in execution on July 1 in 2005, former " clarity test detailed rules and regulations and criterion " revision is " visible foreign matters inspection technique ", further clear and definite medicines such as injection, eye drops must be produced under the condition that meets GMP (GMP), should adopt suitable method to check and reject simultaneously substandard product one by one before the product export, visible foreign matters is meant and is present in injection, the eye drops, the visual insoluble substance that can observe under rated condition, its particle diameter or length are usually greater than 50um.The visible foreign matters inspection technique has lamp test and light scattering method, general normal employing lamp test.Present domestic medicine visible foreign matters detects the method that mostly adopts artificial lamp inspection, rotate gently manually or the upset bottle container, make the visible foreign matters that may the exist motion (noting not making soup to produce bubble) in the soup, judge by the human eye range estimation, if exist visible foreign matters its manual rejecting.That can not avoid during manual detection exists efficient low, the loss height, and problem such as precision is low, the repeatability and the consistance of testing result are poor, and are engaged in testing for a long time and also bring harm to lamp inspection personnel's health.Popularization along with the GMP authentication, China's medicine is produced equipment and checkout equipment robotization and intelligent level and is greatly improved, semi-automatic lamp inspection machine and the full-automatic lamp inspection machine that the medicine visible foreign matters detects appearred being used for, adopt wherein semi-automatic lamp inspection machine simple mechanical drive and optical system realize the semi-automation of artificial lamp inspection, this pick-up unit can alleviate hand labor to a certain extent, but still examine work point by lamp and analyse judgement, accuracy of detection and accuracy rate are not improved.Full-automatic lamp inspection machine has only several companies of a few countries such as Germany, Japan, Italy to have the ability to produce, but external so far full-automatic lamp inspection machine is used still seldom in China, trace it to its cause and have following problem: the filtration in the domestic pharmacy link, wrappage etc. and have very big-difference abroad cause that to detect quality low.But along with the continuous improvement of domestic pharmaceutical environment, the advanced medical checkout equipment of foreign country certainly will change the detection present situation in domestic pharmacy market.In the face of the impact of external advanced complete medical equipment, medical checkout equipment and core detection recognition methods that research and development have independent intellectual property right have crucial value.
In medical fluid foreign body in vivo vision-based detection process, need to make the foreign matter that is deposited in the soup bottom drive liquid upper with special mechanical hook-up, so that video camera imaging, but because the motion of mechanical hook-up often makes in the image after the imaging how much have bubble and noise, and the technical barrier that is faced in foreign matter target and the bubble identification in the image mainly contains:
1, foreign matter is not of uniform size, and detection resolution will reach 50um, and the foreign matter target does not have information such as size, shape and texture, and traditional image processing method can't be used;
2, because bottle surface exists scale embossment, spot, the image background complexity after the imaging, noise is various;
3, signal to noise ratio (S/N ratio) is low in the image, and the foreign matter target often is submerged in the ground unrest;
4, the production line detection speed requires highly, and the real-time of recognizer has been proposed very high requirement.
Summary of the invention
Technical matters to be solved by this invention is, the detection recognition methods of motion visible foreign matters and bubble in a kind of liquid drug is provided, be used for detecting substandard product rapidly with foreign matter at automatic fluid medicine detection line, carry out Digital Signal Analysis and Processing with imaging hardware system is supporting, for medical checkout equipment provides a kind of reliable detection method, thereby improve medicine visible foreign matters accuracy of detection and repeatability, thoroughly solve detect in the high problem of false drop rate, satisfy the performance requirement of domestic existing lamp check system.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be:
The detection recognition methods of motion visible foreign matters and bubble is characterized in that in a kind of liquid drug, may further comprise the steps:
1) current liquid drug to be detected is obtained the multiframe consecutive image;
2) image pre-service: the circular shuttering of employing 7 * 7 carries out high cap (top-hat) morphologic filtering as structural element to the image that obtains, and to remove and less all kinds of bright noise and the dark noise of structural element, obtains the denoising image;
3) moving target extracts: the kinetic characteristic that shows as interframe according to the foreign matter target on time domain, utilize the moving target in the novel three two field picture difference algorithms extraction image, its operating process is: first frame and second frame are done difference processing, second frame and the 3rd frame are done difference processing, strengthen target image by the image accumulation then, obtain to strengthen the back image;
4) moving Object Segmentation: to described enhancing back image utilization modified Two-dimensional maximum-entropy Threshold Segmentation Algorithm, the two-dimensional histogram that adopts gray scale and neighborhood averaging gray scale to constitute is selected threshold value, obtains cutting apart the back image;
5) motion target tracking: when detect cut apart after continuous 3 frames of possible target in the image appear in certain neighborhood, assert that then movement locus is initial; According to the regularity of foreign matter target in the image and bubble target travel, adopt based on the Kalman filtering of uniform rectilinear motion model and upgrade dbjective state, and generate oval tracking gate thus; When the measuring value that falls into oval tracking gate has only one, directly carry out target trajectory and upgrade; When the measuring value that falls into oval tracking gate more than one, target trajectory by distance further the nearest measured value of predicted value upgrade; When track rejection, the possible position of a few frame targets behind the filter value outside forecast in the moment keeps stable memory tracking power before adopting;
6) image recognition and judgement: obtain target trajectory by tracking results, utilize the continuity of target trajectory and directivity cog region to tell foreign matter and bubble target, thereby judge finally whether current liquid drug is qualified.
Described step 2) be:
If the gray scale function of image be f (x, y), structural element be B (x, y), (x y) is pixel coordinate, and then 4 kinds of basic operations are defined as follows:
Corrosion: (f Θ B) (x, y)=min{f (x+i, y+j)-B (i, j) | (x+i, y+j) ∈ D f(i, j) ∈ D B;
Expand: ( f ⊕ B ) ( x , y ) = max { f ( x - i , y - i ) + B ( i , j ) | ( x - i , y - i ) ∈ D f ; ( i , j ) ∈ D B } ;
Opening operation:
Closed operation: f · B = ( f ⊕ B ) ΘB ;
In the formula, D fAnd D BBe respectively the field of definition of function f and B,
Introduce cap transformation filter operator: Hat (f)=f-(f ο B);
(f ο B) carries out the gray scale opening operation for structural element B to image f in the formula, selects for use 7 * 7 circular shuttering as structural element original image to be carried out high cap morphologic filtering, obtains containing the image of foreign matter target, bubble, i.e. the denoising image.
Described step 3) is:
At the denoising image, according to image sequence first frame and second frame in every continuous three two field pictures are done difference processing, second frame and the 3rd frame are done difference processing, press following formula then and strengthen target image, obtain to strengthen the back image:
d(x,y)=|f 1(x,y)-f 2(x,y)|×|f 2(x,y)-f 3(x,y)|;
F wherein 1(x, y), f 2(x, y), f 3(x y) is respectively through filtered first frame of high cap, second frame, the 3rd two field picture, | f 1(x, y)-f 2(x, y) | be first frame and the second frame difference image, | f 2(x, y)-f 3(x, y) | be second frame and three-frame difference image.
Step 4) may further comprise the steps:
(a) image segmentation is become a series of subimages;
(b) the Two-dimensional maximum-entropy algorithm computation goes out the threshold value of each subimage;
(c) according to the threshold value of each subgraph, image is cut apart;
Wherein the acquiring method of threshold value is as follows: establishing size of images is M * N, and image has L gray level, and the field average gray of each pixel also is a L gray level, and total gray level is L * L; On two dimensional surface, make the two dimensional gray histogram, gray-scale value and neighborhood average gray form the gray scale bi-values, the coordinate figure that is designated as each pixel for (i, j), the gray-scale value of i and j difference represent pixel point and the average gray in its field, the frequency that this gray scale combination occurs is f Ij, this pixel functional value is joint probability density function p Ij:
p ij = f ij M × N i,j=0,1,...L-1;
If so that (s t) is segmentation threshold, to the probability distribution p of object O Ij(i=1,2 ... s; J=1,2 ... t) carry out the normalization operation; The definition normalization operation back entropy relevant with the probability distribution of object O is:
H ( O ) = - Σ i - 0 s Σ j = 0 t p ij P st ln p ij P st = - 1 P st Σ i = 0 s Σ j = 0 t ( p ij ln p ij - p ij ln P st ) = ln P st + H st P st ;
Wherein, P st = Σ i = 0 s Σ j = 0 t p ij , H st = - Σ i = 0 s Σ j = 0 t p ij ln p ij ;
The entropy relevant with the probability distribution of background B is
H ( B ) = - Σ i = s + 1 L - 1 Σ j = t + 1 L - 1 p ij 1 - P st ln p ij 1 - P st = - 1 1 - P st Σ i = s + 1 L - 1 Σ j = t + 1 L - 1 [ p ij ln p ij - p ij ln ( 1 - P st ) ] ;
= ln ( 1 - P st ) + H L - 1 L - 1 - H st 1 - P st
Wherein, H L - 1 L - 1 = - Σ i = 0 L - 1 Σ j = 0 L - 1 p ij ln p ij ;
Criterion function Ψ (s t) is taken as H (O), H (B) sum, promptly
Ψ ( s , t ) = H ( O ) + H ( B ) = ln P st + H st P st + ln ( 1 - P st + H L - 1 L - 1 - H st 1 - P st ) ;
= ln P st ( 1 - P st ) + H st P st + H L - 1 L - 1 - H st 1 - P st
(s, t) (s t) promptly is the optimal threshold t that is asked to Zui Da gray-scale value to make Ψ *, promptly
t * = Arg { Max s , t ∈ G Ψ ( s , t ) } ; Wherein Arg{} represents the function of negating.
As improvement, described step 4) also comprises: the introducing genetic algorithm is optimized the partition threshold of Two-dimensional maximum-entropy method, to shorten the Flame Image Process time; Concrete steps are as follows:
Initialization population: produce at random, select evenly to distribute;
Population scale: by analysis, population scale is popsize=20, and maximum evolutionary generation is g Max=100;
Fitness function: (s is t) as fitness function directly to use target function type Ψ;
Coding: because the gradation of image value between 0~255, adopts 8 gray level images, then threshold parameter satisfies 0≤s, t≤255, so individuality is encoded to 16 binary codes, most-significant byte is represented s, and least-significant byte is represented t;
Decoding: the most-significant byte of 16 binary codes is decoded as the s value, and least-significant byte is decoded as the t value;
Select: the employing ratio is selected operator;
Crossover operator: adopt two point to intersect, at random two point of crossing of Chan Shenging lay respectively at coded strings preceding 8 with back 8; Carry out interlace operation with crossover probability Pc; Early stage is chosen Pc=0.8 in search, and the search later stage is chosen Pc=0.6;
Mutation operator: mutation operation is the step-by-step negate; The probability P that will make a variation m is defined as class parabolic type mutation operator:
P m = P m ( g ) = P m _ max - 4 × ( P m _ max - P m _ min ) g max 2 ( g - g max 2 ) 2
Wherein g is an evolutionary generation, and g ∈ [1, g Max], P M_min=P b, P M_max=10P M_min
P bBe basic variation probability, estimate by following formula:
P b ≈ 175 popsize × bits ;
Wherein bits represents individual figure place; Work as popsize=20, during bits=16, P b≈ 0.02;
Work as P b≈ 0.02, g Max=100 o'clock, can get:
P m=P m(g)=0.2-0.00008×(g-50) 2
Stop criterion: when algorithm was carried out the highest fitness value in maximum algebraically or the colony and stablized, algorithm was out of service, and having, the individuality of high fitness value is separating of being asked; When algorithm stopped, the individuality with the highest fitness value was as optimal threshold.
Described step 5) may further comprise the steps:
By determining to obtain the single frames testing result, that target is approximate with uniform rectilinear motion model based on modified Two-dimensional maximum-entropy threshold segmentation algorithm; Its tracker model is: writ attitude vector is X ( k ) = [ x ( k ) , x · ( k ) , y ( k ) , y · ( k ) ] T , Measuring vector is Z (k)=[x (k), y (k)] T, system equation can be write to be become
X(k+1)=ΦX(k)+Gw(k);
Z(k+1)=HX(k)+v(k);
Wherein Φ = 1 T 0 0 0 1 0 0 0 0 1 T 0 0 0 1 , G = T 2 2 0 T 0 0 T 2 2 0 T , H = 1 0 0 0 0 0 1 0 ,
W (k), v (k) are respectively that variance is the zero-mean white Gaussian noise of Q (k) and R (k); T is the sampling period in the formula;
Track initial: if continuous 3 frames of possible target that detect appear in 3 * 3 neighborhoods, track initial then;
Tracking gate and data association: suppose being estimated as of k-1 state vector constantly
Figure A20081014313800125
The one-step prediction of state vector is:
X ^ ( k | k - 1 ) = Φ X ^ ( k - 1 | k - 1 ) ;
Then the new breath of system is:
d ( k ) = Z ( k ) - H X ^ ( k | k - 1 ) ;
New breath variance battle array is:
S(k)=HP(k|k-1)H T+R(k);
Wherein, P (k|k-1) is the one-step prediction variance;
The norm of the new vectorial d of breath of order (k) is:
g(k)=d T(k)S -1(k)d(k);
Wherein g (k) obeys χ M1 2Distribute, M1 is for measuring dimension;
Tracking gate of definition in measurement space makes and measures with certain probability distribution in tracking gate;
V ~ ( γ ) = [ Z : g ( k ) ≤ γ ] , Wherein γ can pass through χ 2The distribution difference checks in;
If after certain frame is handled, in tracking gate, have only an echo, then target trajectory directly upgrades; If have in the tracking gate more than an echo, then target trajectory upgrades by the nearest measured value of distance one-step prediction value;
The track of target upgrades by the standard Kalman filtering algorithm
X(k|k-1)=ΦX(k-1|k-1)
P(k|k-1)=ΦP(k-1|k-1)Φ T+GQ(k-1)G T
K(k)=P(k|k-1)H T[HP(k|k-1)H T+R] -1
X(k|k)=X(k|k-1)+K(k)[Z(k)-H(k)X(k|k-1)]
P(k|k)=[I-K(k)H]P(k|k-1)
In target detected and follow the tracks of after, if the of short duration disappearance of target, can be according to target positional information and motion state before this, dope next step possible position of target, when target occurs once more, but tenacious tracking and be unlikely to lose objects still, and detailed process is as follows:
Suppose being estimated as of k state vector constantly Then the predicted value in the target of k+n frame is:
X ^ ( k + n | k ) = Φ n X ^ ( k | k ) ; Select n<6.
Described step 6) is: suppose that for each bar that target following obtains it is that foreign matter forms or noise or bubble formation that track is distinguished track by following 3 principles, judgment criterion is as follows:
(a) because image is taken when static after medicine bottle turns over turnback, visible foreign matters moves downward, so its centre of form ordinate should be to become big successively, is true origin with the upper left corner;
(b) bubble moves upward, and direction of motion is opposite with foreign matter;
(c) geometric locus of foreign matter formation is smooth, and the track that noise forms is unordered;
Therefore, diminish successively, illustrate that this track is produced by bubble if detect the centre of form ordinate of movement locus; Become big track successively if detect the level and smooth and centre of form ordinate of movement locus, the foreign matter existence be described, judge that current liquid drug is defective.
Beneficial effect of the present invention has:
The present invention adopts the mathematics shape filtering to obtain pretreatment image, and its algorithm can pass through the hardware Parallel Implementation, has improved processing speed greatly.In moving target extracts, utilize novel three two field picture difference algorithms to overcome well that a bottle sidewall may there are differences, the simple sequence image difference is to small foreign matter target detection effect defect of bad, and significantly improved the signal to noise ratio (S/N ratio) of output image, simplified the follow-up difficulty of cutting apart detection algorithm greatly.Adopt modified Two-dimensional maximum-entropy threshold values moving Object Segmentation algorithm to make full use of the intensity profile information of object pixel and the relevant information between pixel in the image, improved the anti-noise ability of Threshold Segmentation, and be optimized by the parameter of genetic algorithm to the Two-dimensional maximum-entropy method, reduce the Flame Image Process time, improved the real-time and the robustness of algorithm greatly.According to the kinetic characteristic of moving target in the image, adopt based on the Kalman filtering of uniform rectilinear motion model and upgrade dbjective state, under the situation that guarantees tracking accuracy, simplified the calculated amount of filtering.The present invention guarantees fully to have simplified calculating under the condition of arithmetic accuracy, improved the real-time of algorithm, improved the accuracy rate that foreign matter and bubble in the soup detect identification greatly, medicine loss and false drop rate have been reduced, can be applicable to have vast market prospect and actual application value in the various detection systems such as medicine, beverage, drinks.
Description of drawings
Fig. 1 is the main-process stream block diagram of method involved in the present invention;
Fig. 2 is the original image of liquid drug in bottle that obtains among the present invention;
Fig. 3 is the enhancing image that target obtains after extracting among the present invention;
Fig. 4 is the image that obtains after the moving Object Segmentation among the present invention;
Fig. 5 is the movement locus figure that motion target tracking obtains among the present invention.
Label declaration: 1-bubble track, 2-foreign matter track.
Embodiment
Be described in further detail below with reference to Fig. 1~5 and specific embodiment.
Embodiment 1:
As shown in Figure 1, the present invention proposes a kind of motion visible foreign matters and bubble recognition methods that liquid drug detects that be used for.The concrete implementation detail of each several part is as follows:
1, Top-hat (high cap) morphologic filtering is handled
The image that obtains is adopted gray scale morphologic filtering filtering image noise.The most basic computing of gray scale morphology is exactly burn into expansion, opening operation and closed operation.If the gray scale function of image be f (x, y), structural element be B (x, y), then 4 kinds of basic operations are defined as follows:; (x y) is pixel coordinate in the formula;
Corrosion: (f Θ B) (x, y)=min{f (x+i, y+j)-B (i, j) | (x+i, y+j) ∈ D f(i, j) ∈ D B; Expand: ( f ⊕ B ) ( x , y ) = max { f ( x - i , y - i ) + B ( i , j ) | ( x - i , y - i ) ∈ D f ; ( i , j ) ∈ D B } ;
Opening operation:
Figure A20081014313800142
Closed operation: f · B = ( f ⊕ B ) ΘB ;
In the formula, D fAnd D BIt is respectively the field of definition of function f and B.The result of corrosion gray level image is, the part darker than background obtains expansion, and the part brighter than background shunk; The result of expansion gray level image is, the part brighter than background obtains expansion, and the part darker than background shunk; Opening operation makes the profile of image become smooth, disconnects narrow interruption and eliminates thin protrusion; Closed operation makes the profile of image become smooth equally, but opposite with opening operation, and it can eliminate narrow interruption and long thin wide gap, eliminates little hole, and fills up the slight crack in the outline line.
Be defined as based on the morphologic Top-hat conversion of gray scale filter operator:
Hat(f)=f-(fοB);(1)
B is a structural element in the formula, (f ο B) carries out the gray scale opening operation for structural element B to image f, its structure promptly is the background that estimates, obtain Hat (f) after subtracting each other, the target image of noise that has been filtering, certainly, also include some single-point impulsive noises through filtered image, they can filtering in the processing of back.Because the noise in the image that obtains is little speck, therefore, select for use 7 * 7 circular shuttering original image to be carried out the Top-hat morphologic filtering as structural element, obtain containing the denoising image of foreign matter target, bubble, as shown in Figure 3.
2, the moving target based on three two field picture difference algorithms extracts
At the image after the processing of Top-hat filtering and noise reduction, according to image sequence first frame and second frame are done difference processing, second frame and the 3rd frame are done difference processing, press following formula then and strengthen target image:
d(x,y)=|f 1(x,y)-f 2(x,y)|×|f 2(x,y)-f 3(x,y)|(2)
F wherein 1(x, y), f 2(x, y), f 3(x y) is respectively through filtered first frame of Top-hat, second frame, the 3rd two field picture, | f 1(x, y)-f 2(x, y) | be first frame and the second frame difference image, | f 2(x, y)-f 3(x, y) | be second frame and three-frame difference image;
After handling by above-mentioned three two field picture difference algorithms, (x has only the pixel position of moving target correspondence non-vanishing in y) to d.But in fact, because the existence of various noises, make in the difference image also non-vanishingly on a lot of pixels position outside moving target, this just requires follow-up processing can effectively identify foreign matter information.
3, moving Object Segmentation
If size of images is M * N, image has L gray level, and the field average gray of each pixel also is this L gray level, and total gray level is L * L.Make the two dimensional gray histogram in the plane, gray-scale value and neighborhood average gray form the gray scale bi-values, be designated as (i, j), i and the gray-scale value of j difference represent pixel point and the average gray in its field, the frequency that this gray scale combination occurs is f Ij, this pixel functional value is joint probability density function p Ij
p ij = f ij M × N i,j=0,1,...L-1(3)
If so that (s t) is segmentation threshold, corresponding to the probability distribution p of object O Ij(i=1,2 ... s; J=1,2 ... t) and should be 1, so need carry out normalization operation.
The definition normalization operation back entropy relevant with the probability distribution of object O is:
H ( O ) = - Σ i - 0 s Σ j = 0 t p ij P st ln p ij P st = - 1 P st Σ i = 0 s Σ j = 0 t ( p ij ln p ij - p ij ln P st ) = ln P st + H st P st - - - ( 4 )
Wherein,
P st = Σ i = 0 s Σ j = 0 t p ij - - - ( 5 )
H st = - Σ i = 0 s Σ j = 0 t p ij ln p ij - - - ( 6 )
In like manner, relevant with the probability distribution of background B entropy is
H ( B ) = - Σ i = s + 1 L - 1 Σ j = t + 1 L - 1 p ij 1 - P st ln p ij 1 - P st = - 1 1 - P st Σ i = s + 1 L - 1 Σ j = t + 1 L - 1 [ p ij ln p ij - p ij ln ( 1 - P st ) ] - - - ( 7 ) ;
= ln ( 1 - P st ) + H L - 1 L - 1 - H st 1 - P st
Wherein, H L - 1 L - 1 = - Σ i = 0 L - 1 Σ j = 0 L - 1 p ij ln p ij ;
As long as in the zone (i=s+1 ... L-1 and j=1,2 ..t) and the zone (i=1,2 ..s and j=t+1 ..., L-1) middle p Ij≈ 0, and more than Ding Yi H (B) just can set up, and hypothesis helps to save computing time like this.Because under many situations, off-diagonal probability distribution is negligible, it is rational therefore making above-mentioned hypothesis.
Criterion function Ψ (s t) is taken as H (O), H (B) sum, promptly
Ψ ( s , t ) = H ( O ) + H ( B ) = ln P st + H st P st + ln ( 1 - P st + H L - 1 L - 1 - H st 1 - P st )
(8)
= ln P st ( 1 - P st ) + H st P st + H L - 1 L - 1 - H st 1 - P st
(s, t) (s t) promptly is the optimal threshold t that is asked to Zui Da gray-scale value to make Ψ *, promptly
t * = Arg { Max s , t ∈ G Ψ ( s , t ) } - - - ( 9 )
Wherein Arg{} represents the function of negating.
At this, at (s, t) optimum of two parameter problems is found the solution the employing genetic algorithm optimization.Genetic algorithm is as a kind of global search method of finding the solution the efficient parallel of problem, its principal feature is the message exchange between colony's search strategy and the individual in population, can in search procedure, obtain automatically and the knowledge that accumulates relevant search volume, control search procedure adaptively in the hope of optimum solution or approximate optimal solution.Simple coding techniques of genetic algorithm utilization and reproduction mechanisms show complexity and the nonlinear problem that is difficult to the conventional search methods solution.
Initialization population: produce at random, select evenly to distribute.
Population scale: by analysis, population scale is popsize=20, and maximum evolutionary generation is g Max=100.
Fitness function: directly use target function type (6) as fitness function.
Coding: because the gradation of image value between 0~255, adopts 8 gray level images to carry out emulation experiment, then threshold parameter satisfies 0≤s, t≤255, so individuality is encoded to 16 binary codes, most-significant byte is represented s, and least-significant byte is represented t.
Decoding: the most-significant byte of 16 binary codes is decoded as the s value, and least-significant byte is decoded as the t value.
Select: the employing ratio is selected operator;
Crossover operator: adopt two point to intersect, at random two point of crossing of Chan Shenging lay respectively at coded strings preceding 8 with back 8.Carry out interlace operation with the crossover probability Pc that configures in advance.Crossover probability is too high to mean that individual renewal is very fast, can reach bigger solution space, and can reduction obtain the probability of non-optimum solution, but the destructiveness of existing more excellent pattern is also increased thereupon.Crossover probability is low excessively, the search meeting because of the hunting zone reduce slow up.This paper chooses Pc=0.8 in search early stage, and the search later stage is chosen Pc=0.6.
Mutation operator: owing to adopt the binary coding mode, therefore variation is exactly the step-by-step negate.Mutation operation has been controlled the ratio that new gene is introduced population.The variation probability is too low, and some useful genes just can not be introduced, and the variation probability is too high, and promptly random variation is too many, and the offspring just may lose parents' good characteristic so.The present embodiment probability P m that will make a variation is defined as class parabolic type mutation operator:
P m = P m ( g ) = P m _ max - 4 × ( P m _ max - P m _ min ) g max 2 ( g - g max 2 ) 2 - - - ( 10 )
Wherein g is an evolutionary generation, and g ∈ [1, g Max], P M_min=P b, P M_max=10P M_min
P bBe basic variation probability, can estimate by following formula:
P b ≈ 175 popsize × bits ;
Wherein bits represents individual figure place.Work as popsize=20, during bits=16, P b≈ 0.02;
Work as P b≈ 0.02, g Max=100 o'clock, can get:
P m=P m(g)=0.2-0.00008×(g-50) 2
Stop criterion: when algorithm was carried out the highest fitness value in maximum algebraically or the colony and stablized, algorithm was out of service, and having, the individuality of high fitness value is separating of being asked.When algorithm stopped, the individuality with the highest fitness value was as optimal threshold.
The basic step of piecemeal Two-dimensional maximum-entropy threshold segmentation algorithm is as follows:
(1) image segmentation is become a series of subimages;
(2) calculate the threshold values (calculating each threshold values) of each subimage with the Two-dimensional maximum-entropy algorithm;
(3) according to the threshold values of each subgraph, image is cut apart.
Image after cutting apart as shown in Figure 4.
4, motion target tracking
By determining to obtain the single frames testing result based on modified Two-dimensional maximum-entropy threshold segmentation algorithm, because the speed of the gentle motion of ducking in drink of foreign matter is slower, so target can be approximate with uniform rectilinear motion model.
The tracker model: writ attitude vector is X ( k ) = [ x ( k ) , x · ( k ) , y ( k ) , y · ( k ) ] T , Measuring vector is Z (k)=[x (k), y (k)] T, system equation can be write to be become:
X(k+1)=ΦX(k)+Gw(k)(11)
Z(k+1)=HX(k)+v(k)(12)
Wherein Φ = 1 T 0 0 0 1 0 0 0 0 1 T 0 0 0 1 , G = T 2 2 0 T 0 0 T 2 2 0 T , H = 1 0 0 0 0 0 1 0 ,
W (k), v (k) are respectively that variance is the zero-mean white Gaussian noise of Q (k) and R (k).T is the sampling period in the formula.Track initial: if continuous 3 frames of possible target that detect appear in 3 * 3 neighborhoods, track initial then.Tracking gate and data association: suppose being estimated as of k-1 state vector constantly
Figure A20081014313800185
The one-step prediction of state vector is:
X ^ ( k | k - 1 ) = Φ X ^ ( k - 1 | k - 1 ) - - - ( 13 )
Then the new breath of system is:
d ( k ) = Z ( k ) - H X ^ ( k | k - 1 ) - - - ( 14 )
New breath variance battle array is:
S(k)=HP(k|k-1)H T+R(k)(15)
Wherein, P (k|k-1) is the one-step prediction variance.
The norm of the new vectorial d of breath of order (k) is:
g(k)=d T(k)S -1(k)d(k);(16)
Wherein g (k) obeys χ M1 2Distribute, M1 is for measuring dimension.
A definition ellipsoid (being called tracking gate again) in measurement space makes and measures with certain probability distribution in tracking gate
V ~ ( γ ) = [ Z : g ( k ) ≤ γ ] - - - ( 17 )
Wherein γ can pass through χ 2Distribution table checks in.
If after certain frame is handled, in tracking gate, have only an echo, then target trajectory directly upgrades; If have in the tracking gate more than an echo, then target trajectory upgrades by the nearest measured value of distance one-step prediction value.
The track of target upgrades by the standard Kalman filtering algorithm
X(k|k-1)=ΦX(k-1|k-1)
P(k|k-1)=ΦP(k-1|k-1)Φ T+GQ(k-1)G T
K(k)=P(k?|k-1)H T[HP(k|k-1)H T+R] -1(18)
X(k|k)=X(k|k-1)+K(k)[Z(k)-H(k)X(k|k-1)]
P(k|k)=[I-K(k)H]P(k|k-1)
Fig. 5 has provided the movement locus figure that target following obtains.
In target detected and follow the tracks of after, if, can dope next step possible position of target according to target positional information and motion state before this because some optical considerations makes the of short duration disappearance of target, when target occurs once more, but tenacious tracking and be unlikely to lose objects still.The purpose of doing like this greatly reduces the noise erroneous judgement is the possibility of foreign matter.Because the movement velocity of foreign matter in liquid is slower, can draw the filter value of dbjective state vector by the described target following in top based on uniform rectilinear motion model, outside forecast obtains the possible position of target.
Suppose being estimated as of k state vector constantly
Figure A20081014313800192
Then the predicted value in the target of k+n frame is:
X ^ ( k + n | k ) = Φ n X ^ ( k | k ) - - - ( 19 )
When using in actual detected, along with the increase of time and the variation of possibility object of which movement, more total tracking data in past is more and more uncorrelated with following situation, and along with the increase of n, precision of prediction can descend.Here generally select n<6.
5, Target Recognition and judgement
This step mainly is a technology of utilizing some image recognitions, supposes that for each bar that target following obtains it is that foreign matter forms or noise or bubble formation that track is distinguished track by following 3 principles, and judgment criterion is as follows:
(1) because image is taken when static after medicine bottle turns over turnback, visible foreign matters moves downward, so its centre of form ordinate should be to become big (is true origin with the upper left corner) successively;
(2) bubble moves upward, and direction of motion is opposite with foreign matter;
(3) geometric locus of foreign matter formation is smooth, and the track that noise forms is unordered.
Therefore, diminish successively, illustrate that this track is produced by bubble if detect the centre of form ordinate of movement locus; Become big track successively if detect the level and smooth and centre of form ordinate of movement locus, illustrate that foreign matter exists, write down judged result, and send the rejecting signal to system.The track of foreign matter and bubble and recognition result are as shown in Figure 5.

Claims (7)

1. the detection recognition methods of motion visible foreign matters and bubble in the liquid drug is characterized in that, may further comprise the steps:
1) current liquid drug to be detected is obtained the multiframe consecutive image;
2) image pre-service: the circular shuttering of employing 7 * 7 carries out high cap morphologic filtering as structural element to the image that obtains, and to remove and less all kinds of bright noise and the dark noise of structural element, obtains the denoising image;
3) moving target extracts: the kinetic characteristic that shows as interframe according to the foreign matter target on time domain, utilize the moving target in the novel three two field picture difference algorithms extraction image, its operating process is: first frame and second frame are done difference processing, second frame and the 3rd frame are done difference processing, strengthen target image by the image accumulation then, obtain to strengthen the back image;
4) moving Object Segmentation: to described enhancing back image utilization modified Two-dimensional maximum-entropy Threshold Segmentation Algorithm, the two-dimensional histogram that adopts gray scale and neighborhood averaging gray scale to constitute is selected threshold value, obtains cutting apart the back image;
5) motion target tracking: when detect cut apart after continuous 3 frames of possible target in the image appear in certain neighborhood, assert that then movement locus is initial; According to the regularity of foreign matter target in the image and bubble target travel, adopt based on the Kalman filtering of uniform rectilinear motion model and upgrade dbjective state, and generate oval tracking gate thus; When the measuring value that falls into oval tracking gate has only one, directly carry out target trajectory and upgrade; When the measuring value that falls into oval tracking gate more than one, target trajectory by distance further the nearest measured value of predicted value upgrade; When track rejection, the possible position of a few frame targets behind the filter value outside forecast in the moment keeps stable memory tracking power before adopting;
6) image recognition and judgement: obtain target trajectory by tracking results, utilize the continuity of target trajectory and directivity cog region to tell foreign matter and bubble target, thereby judge finally whether current liquid drug is qualified.
2. the detection recognition methods of motion visible foreign matters and bubble is characterized in that in the liquid drug as claimed in claim 1, described step 2) be:
If the gray scale function of image be f (x, y), structural element be B (x, y), (x y) is pixel coordinate, and then 4 kinds of basic operations are defined as follows:
Corrosion: (f Θ B) (x, y)=min{f (x+i, y+j)-B (i, j) | (x+i, y+j) ∈ D f(i, j) ∈ D B;
Expand: ( f ⊕ B ) ( x , y ) = max { f ( x - i , y - j ) + B ( i , j ) | ( x - i , y - j ) ∈ D f ; ( i , j ) ∈ D B } ;
Opening operation:
Figure A2008101431380002C2
Closed operation: f · B = ( f ⊕ B ) ΘB ;
In the formula, D fAnd D BBe respectively the field of definition of function f and B,
Introduce cap transformation filter operator: Hat (f)=f-(f о B);
(f о B) carries out the gray scale opening operation for structural element B to image f in the formula, selects for use 7 * 7 circular shuttering as structural element original image to be carried out high cap morphologic filtering, obtains containing the image of foreign matter target, bubble, i.e. the denoising image.
3. the detection recognition methods of motion visible foreign matters and bubble is characterized in that in the liquid drug as claimed in claim 1, and described step 3) is:
At the denoising image, according to image sequence first frame and second frame in every continuous three two field pictures are done difference processing, second frame and the 3rd frame are done difference processing, press following formula then and strengthen target image, obtain to strengthen the back image:
d(x,y)=|f 1(x,y)-f 2(x,y)|×|f 2(x,y)-f 3(x,y)|
F wherein 1(x, y), f 2(x, y), f 3(x y) is respectively through filtered first frame of high cap, second frame, the 3rd two field picture, | f 1(x, y)-f 2(x, y) | be first frame and the second frame difference image, | f 2(x, y)-f 3(x, y) | be second frame and three-frame difference image.
4. the detection recognition methods of motion visible foreign matters and bubble is characterized in that in the liquid drug as claimed in claim 1, and described step 4) may further comprise the steps:
(a) image segmentation is become a series of subimages;
(b) the Two-dimensional maximum-entropy algorithm computation goes out the threshold value of each subimage;
(c) according to the threshold value of each subgraph, image is cut apart;
Wherein the acquiring method of threshold value is as follows: establishing size of images is M * N, and image has L gray level, and the field average gray of each pixel also is a L gray level, and total gray level is L * L; On two dimensional surface, make the two dimensional gray histogram, gray-scale value and neighborhood average gray form the gray scale bi-values, the coordinate figure that is designated as each pixel for (i, j), the gray-scale value of i and j difference represent pixel point and the average gray in its field, the frequency that this gray scale combination occurs is f Ij, this pixel functional value is joint probability density function p Ij:
p ij = f ij M × N i,j=0,1,...L-1;
If so that (s t) is segmentation threshold, to the probability distribution p of object O Ij(i=1,2 ... s; J=1,2 ... t) carry out the normalization operation; The definition normalization operation back entropy relevant with the probability distribution of object O is:
H ( O ) = - Σ i - 0 s Σ j = 0 t p ij P st ln p ij P st = - 1 P st Σ i = 0 s Σ j = 0 t ( p ij ln p ij - p ij ln P st ) = ln P st + H st P st ;
Wherein, P st = Σ i = 0 s Σ j = 0 t p ij , H st = - Σ i = 0 s Σ j = 0 t p ij ln p ij ;
The entropy relevant with the probability distribution of background B is
H ( B ) = - Σ i = s + 1 L - 1 Σ j = t + 1 L - 1 p ij 1 - P st ln p ij 1 - P st = - 1 1 - P st Σ i = s + 1 L - 1 Σ j = t + 1 L - 1 [ p ij ln p ij - p ij ln ( 1 - P st ) ] ;
= ln ( 1 - P st ) + H L - 1 L - 1 - H st 1 - P st
Wherein, H L - 1 L - 1 = - Σ t = 0 L - 1 Σ j = 0 L - 1 p ij ln p ij ;
Criterion function Ψ (s t) is taken as H (O), H (B) sum, promptly
Ψ ( s , t ) = H ( O ) + H ( B ) = ln P st + H st P st + ln ( 1 - P st + H L - 1 L - 1 - H st 1 - P st ) ;
= ln P st ( 1 - P st ) + H st P st + H L - 1 L - 1 - H st 1 - P st
(s, t) (s t) promptly is the optimal threshold t that is asked to Zui Da gray-scale value to make Ψ *, promptly
t * = Arg { Max s , t ∈ G Ψ ( s , t ) } ; Wherein Arg{} represents the function of negating.
5. the detection recognition methods of motion visible foreign matters and bubble is characterized in that in the liquid drug as claimed in claim 4, and described step 4) also comprises: the introducing genetic algorithm is optimized the partition threshold of Two-dimensional maximum-entropy method, to shorten the Flame Image Process time; Concrete steps are as follows:
Initialization population: produce at random, select evenly to distribute;
Population scale: by analysis, population scale is popsize=20, and maximum evolutionary generation is g Max=100;
Fitness function: (s is t) as fitness function directly to use target function type Ψ;
Coding: because the gradation of image value between 0~255, adopts 8 gray level images, then threshold parameter satisfies 0≤s, t≤255, so individuality is encoded to 16 binary codes, most-significant byte is represented s, and least-significant byte is represented t;
Decoding: the most-significant byte of 16 binary codes is decoded as the s value, and least-significant byte is decoded as the t value;
Select: the employing ratio is selected operator;
Crossover operator: adopt two point to intersect, at random two point of crossing of Chan Shenging lay respectively at coded strings preceding 8 with back 8; Carry out interlace operation with crossover probability Pc; Early stage is chosen Pc=0.8 in search, and the search later stage is chosen Pc=0.6;
Mutation operator: mutation operation is the step-by-step negate; The probability P that will make a variation m is defined as class parabolic type mutation operator:
P m = P m ( g ) = P m _ max - 4 × ( P m _ max - P m _ min ) g max 2 ( g - g max 2 ) 2
Wherein g is an evolutionary generation, and g ∈ [1, g Max], P M_min=P b, P M_max=10P M_min
P bBe basic variation probability, estimate by following formula:
P b ≈ 175 popsize × bits ;
Wherein bits represents individual figure place; Work as popsize=20, during bits=16, P b≈ 0.02;
Work as P b≈ 0.02, g Max=100 o'clock, can get:
P m=P m(g)=0.2-0.00008×(g-50) 2
Stop criterion: when algorithm was carried out the highest fitness value in maximum algebraically or the colony and stablized, algorithm was out of service, and having, the individuality of high fitness value is separating of being asked; When algorithm stopped, the individuality with the highest fitness value was as optimal threshold.
6. the detection recognition methods of motion visible foreign matters and bubble is characterized in that in the liquid drug as claimed in claim 1, and described step 5) may further comprise the steps:
By determining to obtain the single frames testing result, that target is approximate with uniform rectilinear motion model based on modified Two-dimensional maximum-entropy threshold segmentation algorithm; Its tracker model is: writ attitude vector is X ( k ) = [ x ( k ) , x · ( k ) , y ( k ) , y · ( k ) ] T , Measuring vector is Z (k)=[x (k), y (k)] T, system equation can be write to be become
X(k+1)=ΦX(k)+Gw(k);
Z(k+1)=HX(k)+v(k);
Wherein Φ = 1 T 0 0 0 1 0 0 0 0 1 T 0 0 0 1 , G = T 2 2 0 T 0 0 T 2 2 0 T , H = 1 0 0 0 0 0 1 0 ,
W (k), v (k) are respectively that variance is the zero-mean white Gaussian noise of Q (k) and R (k); T is the sampling period in the formula; Track initial: if continuous 3 frames of possible target that detect appear in 3 * 3 neighborhoods, track initial then;
Tracking gate and data association: suppose being estimated as of k-1 state vector constantly
Figure A2008101431380005C6
The one-step prediction of state vector is: X ^ ( k | k - 1 ) = Φ X ^ ( k - 1 | k - 1 ) ;
Then the new breath of system is:
d ( k ) = Z ( k ) - H X ^ ( k | k - 1 ) ;
New breath variance battle array is:
S(k)=HP(k|k-1)H T+R(k);
Wherein, P (k|k-1) is the one-step prediction variance;
The norm of the new vectorial d of breath of order (k) is:
g(k)=d T(k)S -1(k)d(k);
Wherein g (k) obeys χ M1 2Distribute, M1 is for measuring dimension;
Tracking gate of definition in measurement space makes and measures with certain probability distribution in tracking gate;
V ~ ( γ ) = [ Z : g ( k ) ≤ γ ] , Wherein γ can pass through χ 2The distribution difference checks in;
If after certain frame is handled, in tracking gate, have only an echo, then target trajectory directly upgrades; If have in the tracking gate more than an echo, then target trajectory upgrades by the nearest measured value of distance one-step prediction value;
The track of target upgrades by the standard Kalman filtering algorithm:
X(k|k-1)=ΦX(k-1|k-1)
P(k|k-1)=ΦP(k-1|k-1)Φ T+GQ(k-1)G T
K(k)=P(k|k-1)H T[HP(k|k-1)H T+R] -1
X(k|k)=X(k|k-1)+K(k)[Z(k)-H(k)X(k|k-1)]
P(k|k)=[I-K(k)H]P(k|k-1)
In target detected and follow the tracks of after, if the of short duration disappearance of target, can be according to target positional information and motion state before this, dope next step possible position of target, when target occurs once more, but tenacious tracking and be unlikely to lose objects still, and detailed process is as follows:
Suppose being estimated as of k state vector constantly
Figure A2008101431380006C2
Then the predicted value in the target of k+n frame is:
X ^ ( k + n | k ) = Φ n X ^ ( k | k ) ; Select n<6.
7. as the detection recognition methods of motion visible foreign matters and bubble in each described liquid drug of claim 1~6, it is characterized in that, described step 6) is: suppose that for each bar that target following obtains it is that foreign matter forms or noise or bubble formation that track is distinguished track by following 3 principles, judgment criterion is as follows:
(a) because image is taken when static after medicine bottle turns over turnback, visible foreign matters moves downward, so its centre of form ordinate should be to become big successively, is true origin with the upper left corner;
(b) bubble moves upward, and direction of motion is opposite with foreign matter;
(c) geometric locus of foreign matter formation is smooth, and the track that noise forms is unordered;
Therefore, diminish successively, illustrate that this track is produced by bubble if detect the centre of form ordinate of movement locus; Become big track successively if detect the level and smooth and centre of form ordinate of movement locus, the foreign matter existence be described, judge that current liquid drug is defective.
CN2008101431381A 2008-09-04 2008-09-04 Method for detecting, tracking and recognizing movement visible exogenous impurity in medicine liquid Expired - Fee Related CN101354359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101431381A CN101354359B (en) 2008-09-04 2008-09-04 Method for detecting, tracking and recognizing movement visible exogenous impurity in medicine liquid

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101431381A CN101354359B (en) 2008-09-04 2008-09-04 Method for detecting, tracking and recognizing movement visible exogenous impurity in medicine liquid

Publications (2)

Publication Number Publication Date
CN101354359A true CN101354359A (en) 2009-01-28
CN101354359B CN101354359B (en) 2010-11-10

Family

ID=40307271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101431381A Expired - Fee Related CN101354359B (en) 2008-09-04 2008-09-04 Method for detecting, tracking and recognizing movement visible exogenous impurity in medicine liquid

Country Status (1)

Country Link
CN (1) CN101354359B (en)

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859378A (en) * 2010-06-11 2010-10-13 湖南大学 Visual detection method for quality of liquid medicine on high-speed pharmaceutical production line
CN102014240A (en) * 2010-12-01 2011-04-13 深圳市蓝韵实业有限公司 Real-time medical video image denoising method
CN102024143A (en) * 2010-11-16 2011-04-20 湖南大学 Method for tracking and identifying medicinal liquid impurity images on high-speed medicament production line
CN102435897A (en) * 2011-09-14 2012-05-02 浙江省电力试验研究院 Method for filtering online monitoring data of arrester leakage current based on morphological principle
CN101567087B (en) * 2009-05-25 2012-05-23 北京航空航天大学 Method for detecting and tracking small and weak target of infrared sequence image under complex sky background
CN102779339A (en) * 2011-12-31 2012-11-14 北京京东方光电科技有限公司 Image processing method and system
CN102998316A (en) * 2012-12-20 2013-03-27 山东大学 Transparent liquid impurity detection system and detection method thereof
CN103226814A (en) * 2013-04-02 2013-07-31 湖南大学 Medicine bottle foreign matter detection method based on medical visual detection robot image correction
CN103308527A (en) * 2013-05-30 2013-09-18 屈桢深 Detection method and detection system for foreign matters in infusion bottle
CN103514610A (en) * 2013-09-17 2014-01-15 四川虹微技术有限公司 Method for parting moving target with static background
CN103930771A (en) * 2011-11-10 2014-07-16 克朗斯股份公司 Inspection and recycling of containers
CN104103049A (en) * 2014-08-05 2014-10-15 成都信息工程学院 Weak and small target enhancing method and weak and small target enhancing device based on differencing
CN104867132A (en) * 2015-04-29 2015-08-26 中国科学院上海微***与信息技术研究所 Image segmentation method based on genetic algorithm and maximum entropy threshold segmentation algorithm
CN105678807A (en) * 2016-01-04 2016-06-15 广东威创视讯科技股份有限公司 Joined screen-based motion trajectory extraction method and system
CN105869154A (en) * 2015-09-23 2016-08-17 长沙理工大学 Visible foreign matter and bubble classification recognition detection method for medical (250ml)
CN105973904A (en) * 2016-04-28 2016-09-28 南京汇川图像视觉技术有限公司 Edible oil impurity detection method based on image background probability graph
CN106373140A (en) * 2016-08-31 2017-02-01 杭州沃朴物联科技有限公司 Transparent and semitransparent liquid impurity detection method based on monocular vision
CN107133972A (en) * 2017-05-11 2017-09-05 南宁市正祥科技有限公司 A kind of video moving object detection method
CN107680079A (en) * 2017-09-04 2018-02-09 湖南大学 The high-speed parallel visible detection method of visible foreign matters in a kind of medical pharmacy
CN108520260A (en) * 2018-04-11 2018-09-11 中南大学 The recognition methods of visible foreign matters in bottled oral solution
CN108537150A (en) * 2018-03-27 2018-09-14 秦广民 Reflective processing system based on image recognition
CN108829248A (en) * 2018-06-01 2018-11-16 中国科学院软件研究所 A kind of mobile target selecting method and system based on the correction of user's presentation model
CN109035258A (en) * 2018-07-20 2018-12-18 北京工业大学 A kind of image partition method based on oriented intersection genetic algorithm and Two-dimensional maximum-entropy Threshold Segmentation Algorithm
CN109035220A (en) * 2018-07-10 2018-12-18 珠海格力智能装备有限公司 The image detecting method and device of target object
CN109143393A (en) * 2018-08-01 2019-01-04 哈尔滨工业大学 Bottled transparent medical fluid foreign bodies detection synchronized tracking visual compensation
CN109166114A (en) * 2018-08-24 2019-01-08 武汉轻工大学 The recognition methods of backbone intervertenral space, equipment, storage medium and device
CN109360195A (en) * 2018-09-28 2019-02-19 长沙湘计海盾科技有限公司 The visible detection method of foreign particles in a kind of bottle-packaging solution
CN109709108A (en) * 2019-02-26 2019-05-03 天津迦自机器人科技有限公司 A kind of bottled transparency liquid defects inspecting device and method
WO2019148453A1 (en) * 2018-02-02 2019-08-08 深圳蓝胖子机器人有限公司 Method for training target recognition model, target recognition method, apparatus, and robot
CN110726720A (en) * 2019-11-07 2020-01-24 昆明理工大学 Method for detecting suspended substances in drinking mineral water
CN111950466A (en) * 2020-08-13 2020-11-17 北京福通互联科技集团有限公司 Bottled liquor detection method and detection device based on trajectory cascade algorithm
CN112837347A (en) * 2021-02-04 2021-05-25 安徽工程大学 RGB color characteristic-based clothes motion trajectory analysis method and system for clothes washing and drying equipment in washing and drying process
CN114261590A (en) * 2022-01-19 2022-04-01 佛山果硕智能科技有限公司 Method and device for analyzing dynamic bubbles after beer canning
CN115082476A (en) * 2022-08-23 2022-09-20 山东鲁西药业有限公司 Visual detection method for visible foreign matters in medical medicament
CN116363129A (en) * 2023-05-31 2023-06-30 山东辰欣佛都药业股份有限公司 Intelligent lamp inspection system for eye drop production

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6252980B1 (en) * 1993-11-24 2001-06-26 Nira Schwartz Additional dynamic fluid level and bubble inspection for quality and process control

Cited By (56)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567087B (en) * 2009-05-25 2012-05-23 北京航空航天大学 Method for detecting and tracking small and weak target of infrared sequence image under complex sky background
CN101859378A (en) * 2010-06-11 2010-10-13 湖南大学 Visual detection method for quality of liquid medicine on high-speed pharmaceutical production line
CN102024143A (en) * 2010-11-16 2011-04-20 湖南大学 Method for tracking and identifying medicinal liquid impurity images on high-speed medicament production line
CN102014240B (en) * 2010-12-01 2013-07-31 深圳市蓝韵实业有限公司 Real-time medical video image denoising method
CN102014240A (en) * 2010-12-01 2011-04-13 深圳市蓝韵实业有限公司 Real-time medical video image denoising method
CN102435897A (en) * 2011-09-14 2012-05-02 浙江省电力试验研究院 Method for filtering online monitoring data of arrester leakage current based on morphological principle
CN102435897B (en) * 2011-09-14 2013-11-06 浙江省电力公司电力科学研究院 Method for filtering online monitoring data of arrester leakage current based on morphological principle
CN103930771A (en) * 2011-11-10 2014-07-16 克朗斯股份公司 Inspection and recycling of containers
CN103930771B (en) * 2011-11-10 2017-02-22 克朗斯股份公司 Inspection and recycling of containers
US9372180B2 (en) 2011-11-10 2016-06-21 Krones Ag Inspection and recycling of containers
CN102779339A (en) * 2011-12-31 2012-11-14 北京京东方光电科技有限公司 Image processing method and system
CN102998316A (en) * 2012-12-20 2013-03-27 山东大学 Transparent liquid impurity detection system and detection method thereof
CN103226814A (en) * 2013-04-02 2013-07-31 湖南大学 Medicine bottle foreign matter detection method based on medical visual detection robot image correction
CN103226814B (en) * 2013-04-02 2015-09-30 湖南大学 A kind of medicine bottle foreign matter detecting method based on medical visual detection robot image rectification
CN103308527A (en) * 2013-05-30 2013-09-18 屈桢深 Detection method and detection system for foreign matters in infusion bottle
CN103514610A (en) * 2013-09-17 2014-01-15 四川虹微技术有限公司 Method for parting moving target with static background
CN103514610B (en) * 2013-09-17 2016-01-06 四川虹微技术有限公司 A kind of moving Object Segmentation method of stationary background
CN104103049A (en) * 2014-08-05 2014-10-15 成都信息工程学院 Weak and small target enhancing method and weak and small target enhancing device based on differencing
CN104103049B (en) * 2014-08-05 2017-02-22 成都信息工程学院 Weak and small target enhancing method and weak and small target enhancing device based on differencing
CN104867132A (en) * 2015-04-29 2015-08-26 中国科学院上海微***与信息技术研究所 Image segmentation method based on genetic algorithm and maximum entropy threshold segmentation algorithm
CN105869154A (en) * 2015-09-23 2016-08-17 长沙理工大学 Visible foreign matter and bubble classification recognition detection method for medical (250ml)
CN105869154B (en) * 2015-09-23 2018-10-16 长沙理工大学 A kind of Classification and Identification detection method of 250ml medical large transfusions visible foreign matters and bubble
CN105678807A (en) * 2016-01-04 2016-06-15 广东威创视讯科技股份有限公司 Joined screen-based motion trajectory extraction method and system
CN105973904A (en) * 2016-04-28 2016-09-28 南京汇川图像视觉技术有限公司 Edible oil impurity detection method based on image background probability graph
CN105973904B (en) * 2016-04-28 2019-02-12 南京汇川图像视觉技术有限公司 A kind of edible oil method for detecting impurities based on image background probability graph
CN106373140A (en) * 2016-08-31 2017-02-01 杭州沃朴物联科技有限公司 Transparent and semitransparent liquid impurity detection method based on monocular vision
CN107133972A (en) * 2017-05-11 2017-09-05 南宁市正祥科技有限公司 A kind of video moving object detection method
CN107680079A (en) * 2017-09-04 2018-02-09 湖南大学 The high-speed parallel visible detection method of visible foreign matters in a kind of medical pharmacy
CN107680079B (en) * 2017-09-04 2019-10-29 湖南大学 The high-speed parallel visible detection method of visible foreign matters in a kind of medical pharmacy
WO2019148453A1 (en) * 2018-02-02 2019-08-08 深圳蓝胖子机器人有限公司 Method for training target recognition model, target recognition method, apparatus, and robot
CN108537150A (en) * 2018-03-27 2018-09-14 秦广民 Reflective processing system based on image recognition
CN108537150B (en) * 2018-03-27 2019-01-18 长沙英迈智越信息技术有限公司 Reflective processing system based on image recognition
CN108520260A (en) * 2018-04-11 2018-09-11 中南大学 The recognition methods of visible foreign matters in bottled oral solution
CN108520260B (en) * 2018-04-11 2022-02-01 中南大学 Method for identifying visible foreign matters in bottled oral liquid
CN108829248B (en) * 2018-06-01 2020-11-20 中国科学院软件研究所 Moving target selection method and system based on user performance model correction
CN108829248A (en) * 2018-06-01 2018-11-16 中国科学院软件研究所 A kind of mobile target selecting method and system based on the correction of user's presentation model
CN109035220A (en) * 2018-07-10 2018-12-18 珠海格力智能装备有限公司 The image detecting method and device of target object
CN109035258A (en) * 2018-07-20 2018-12-18 北京工业大学 A kind of image partition method based on oriented intersection genetic algorithm and Two-dimensional maximum-entropy Threshold Segmentation Algorithm
CN109035258B (en) * 2018-07-20 2021-08-13 北京工业大学 Image segmentation method based on directed cross genetic algorithm and two-dimensional maximum entropy threshold segmentation algorithm
CN109143393A (en) * 2018-08-01 2019-01-04 哈尔滨工业大学 Bottled transparent medical fluid foreign bodies detection synchronized tracking visual compensation
CN109143393B (en) * 2018-08-01 2020-06-30 哈尔滨工业大学 Synchronous tracking visual compensation method for detecting foreign matters in bottled transparent liquid medicine
CN109166114A (en) * 2018-08-24 2019-01-08 武汉轻工大学 The recognition methods of backbone intervertenral space, equipment, storage medium and device
CN109360195A (en) * 2018-09-28 2019-02-19 长沙湘计海盾科技有限公司 The visible detection method of foreign particles in a kind of bottle-packaging solution
CN109709108A (en) * 2019-02-26 2019-05-03 天津迦自机器人科技有限公司 A kind of bottled transparency liquid defects inspecting device and method
CN109709108B (en) * 2019-02-26 2023-12-05 天津迦自机器人科技有限公司 Bottled transparent liquid impurity detection equipment and method
CN110726720B (en) * 2019-11-07 2021-09-17 昆明理工大学 Method for detecting suspended substances in drinking mineral water
CN110726720A (en) * 2019-11-07 2020-01-24 昆明理工大学 Method for detecting suspended substances in drinking mineral water
CN111950466A (en) * 2020-08-13 2020-11-17 北京福通互联科技集团有限公司 Bottled liquor detection method and detection device based on trajectory cascade algorithm
CN112837347A (en) * 2021-02-04 2021-05-25 安徽工程大学 RGB color characteristic-based clothes motion trajectory analysis method and system for clothes washing and drying equipment in washing and drying process
CN112837347B (en) * 2021-02-04 2022-10-18 安徽工程大学 RGB color characteristic-based clothes motion trajectory analysis method and system for clothes washing and drying equipment in washing and drying process
CN114261590A (en) * 2022-01-19 2022-04-01 佛山果硕智能科技有限公司 Method and device for analyzing dynamic bubbles after beer canning
CN114261590B (en) * 2022-01-19 2023-09-22 佛山果硕智能科技有限公司 Method and device for analyzing dynamic bubbles after beer canning
CN115082476A (en) * 2022-08-23 2022-09-20 山东鲁西药业有限公司 Visual detection method for visible foreign matters in medical medicament
CN115082476B (en) * 2022-08-23 2022-11-08 山东鲁西药业有限公司 Visual detection method for visible foreign matters in medical medicament
CN116363129A (en) * 2023-05-31 2023-06-30 山东辰欣佛都药业股份有限公司 Intelligent lamp inspection system for eye drop production
CN116363129B (en) * 2023-05-31 2023-08-22 山东辰欣佛都药业股份有限公司 Intelligent lamp inspection system for eye drop production

Also Published As

Publication number Publication date
CN101354359B (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN101354359B (en) Method for detecting, tracking and recognizing movement visible exogenous impurity in medicine liquid
US11004209B2 (en) Methods and systems for applying complex object detection in a video analytics system
CN100587717C (en) Medical large transfusion machine vision on-line detection method
CN102175693B (en) Machine vision detection method of visual foreign matters in medical medicament
CN101470809B (en) Moving object detection method based on expansion mixed gauss model
Li et al. A deep learning approach for real-time rebar counting on the construction site based on YOLOv3 detector
CN105403147B (en) One kind being based on Embedded bottle embryo detection system and detection method
CN103971386A (en) Method for foreground detection in dynamic background scenario
CN103069796A (en) Method for counting objects and apparatus using a plurality of sensors
CN105243356B (en) A kind of method and device that establishing pedestrian detection model and pedestrian detection method
CN102034240A (en) Method for detecting and tracking static foreground
CN106373140B (en) Transparent and semitransparent liquid impurity detection method based on monocular vision
CN106778540B (en) Parking detection is accurately based on the parking event detecting method of background double layer
CN110009622B (en) Display panel appearance defect detection network and defect detection method thereof
CN104268520A (en) Human motion recognition method based on depth movement trail
Lian et al. A novel method on moving-objects detection based on background subtraction and three frames differencing
CN104537688A (en) Moving object detecting method based on background subtraction and HOG features
CN103426164A (en) Scallop dimension calculating method based on Opencv image analysis and scallop sorting system
CN102749034B (en) Railway switch gap offset detection method based on image processing
CN103049749B (en) The recognition methods again of human body under grid blocks
CN114170549A (en) Water surface floater detection method based on deep learning
CN107977960A (en) A kind of car surface scratch detection algorithm based on improved SUSAN operators
Tao et al. Gap detection of switch machines in complex environment based on object detection and image processing
CN112084957B (en) Mobile target retention detection method and system
CN101950352A (en) Target detection method capable of removing illumination influence and device thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Wang Yaonan

Inventor after: Zhang Hui

Inventor after: Zhou Bowen

Inventor after: Ge Ji

Inventor after: Mao Jianxu

Inventor after: Liu Caiping

Inventor before: Wang Yaonan

Inventor before: Zhang Hui

Inventor before: Zhou Bowen

Inventor before: Ge Ji

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: WANG YAONAN ZHANG HUI ZHOU BOWEN GE JI TO: WANG YAONAN ZHANG HUI ZHOU BOWEN GE JI MAO JIANXU LIU CAIPING

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101110

Termination date: 20200904