CN101464944A - Crowd density analysis method based on statistical characteristics - Google Patents

Crowd density analysis method based on statistical characteristics Download PDF

Info

Publication number
CN101464944A
CN101464944A CNA2007101798837A CN200710179883A CN101464944A CN 101464944 A CN101464944 A CN 101464944A CN A2007101798837 A CNA2007101798837 A CN A2007101798837A CN 200710179883 A CN200710179883 A CN 200710179883A CN 101464944 A CN101464944 A CN 101464944A
Authority
CN
China
Prior art keywords
crowd
mid
mosaic
expression
time
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
CNA2007101798837A
Other languages
Chinese (zh)
Other versions
CN101464944B (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.)
Institute of Automation of Chinese Academy of Science
Original Assignee
Institute of Automation of Chinese Academy of Science
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 Institute of Automation of Chinese Academy of Science filed Critical Institute of Automation of Chinese Academy of Science
Priority to CN2007101798837A priority Critical patent/CN101464944B/en
Publication of CN101464944A publication Critical patent/CN101464944A/en
Application granted granted Critical
Publication of CN101464944B publication Critical patent/CN101464944B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a method for analyzing crowd density base on statistical characteristics. The method comprises the following steps: video input and frame extraction are carried out; the mosaic image difference MID characteristics are extracted from the video-frequency frame sequence, and the subtle movements in the crowd are detected; the uniform distribution of the sequence time of the mosaic image difference MID characteristics is checked; the geometric correction is performed to the crowd and the scene with obvious perspective phenomenon, and a contribution factor of each picture element to the crowd density is obtained on the image plane; and the weighting process is performed to the crowd space area, so as to obtain the crowd density. Compared with the prior method, the method has no need of the reference background, also has no need of the background modeling and can self-adapt change of either morning or evening light, the algorithm is quite robust, and the application is convenient; the mathematical model is simple and effective, the spatial distribution and the size of the crowd can be accurately located, and the vivacity is strong; the calculation amount is small, and the method is suitable for real-time visual monitoring. The invention can be widely applied to the monitoring and the management of the public places with detained crowd density such as the public transportation, the subway, the square and the like.

Description

A kind of crowd density analysis method based on statistical nature
Technical field
The present invention relates to mode identification technology, particularly based on the crowd density analysis method of the robust of statistical nature.
Background technology
Along with computer technology and digital electric technology rapid development, the vision monitoring technology has obtained application more and more widely.Traditional visual monitor system often can only provide the function of video acquisition and storage, need the monitor staff to watch display screen to come unusual circumstance at Control Room, not only increased monitoring cost, and the visual fatigue of watching display screen to cause for a long time can make monitor staff's vigilance reduce, and makes supervisory system can not bring into play due effect at some crucial moment.At present, the intelligent vision monitoring technology is risen, and more and more receives the concern of medium.The intelligent vision monitoring technology is exactly to allow computer generation replace people's brain, allow camera replace people's eyes, analyze the image sequence that from camera, obtains by computer intelligence ground, content in the monitored scene is understood, compared remarkable advantages with traditional visual monitor system: on the one hand, the quantity that can significantly reduce the monitor staff reduces cost; On the other hand, can build the information of being concerned about (anomalous event, break in traffic rules and regulations, passenger flow etc.) that large-scale distributed intelligent monitor system obtains large area region in real time, make things convenient for resource (security personnel, police strength, public transport etc.) scheduling by networking.The crowd density analytical technology is a kind of intelligent vision monitoring technology that has very much using value, it can be applied to monitoring scenes such as subway, public transport platform, square, obtain crowd density information in real time, report to the police for overcrowding scene, the public transport platform crowd density analytic system of networking can also provide foundation for the scheduling of public transport resource.
A main difficult point of crowd density analytical technology is position and the size that how to obtain the crowd.People such as S.A Velastin propose to obtain the crowd by the background subtraction method, and this method disadvantage is the scene background picture that needs to take in advance width of cloth nobody; People such as Sheng-Fuu Lin propose to utilize machine learning, number of people detection technique to come the location crowd, and this method exists the scene of seriously blocking to tend to lose efficacy for too blocking up; People such as NiKos Paragios propose a kind of based on Markov Random Field crowd detection method, this method mathematical model complexity, and constraint condition is many, and parameter is many, uses inconvenience; People such as Xinyu Wu propose a kind of method based on texture analysis and study and estimate the scene number, this method need be to each monitored scene sampling, the artificial number of each sample of specifying is trained, but also requires the texture of monitoring area not abundant, uses inconvenience.
Another difficult point of crowd density analytical technology is after location crowd's position and size, how to estimate crowd's number or density.Number is often estimated relatively difficulty, under the situation that scene is blocked up especially, almost can not finish.Some actual application requirements wish that often intelligent monitor system provides the block up index of degree of a scene, and such as a decimal between 0~1,0 represents almost no one, almost has been full of the people in the 1 expression scene; When scene crowding index is that system can give the alarm automatically after time of 1 surpassing certain hour.
Summary of the invention
Difficult point is after location crowd's position and size in the prior art in order to solve, how to estimate crowd's the number or the problem of density, the purpose of this invention is to provide for this reason and a kind ofly can accurately locate the crowd, rationally estimate the crowd density analysis method of crowded degree.
To achieve these goals, the crowd density analysis method that the present invention is based on the robust of statistical nature comprises step:
Step 1: adopt video camera to catch video, the mode that original input video takes every several frames to get 1 frame is done the frame extraction, reduce frame per second;
Step 2: from sequence of frames of video, extract mosaic image difference MID feature, be used for the crowd's of detecting trickle motion;
Step 3: the check mosaic image difference MID time evenly distributes, and is used for determining whether the motion in the corresponding mosaic blockage is that stable crowd produces;
Step 4: utilize motion that gridding method calculates the crowd in spatial distributions, and will feed back to step 3 with the relevant parameter that is used for the time distribution inspection of space distribution;
Step 5: the crowd's scene with obvious perspective phenomenon is done geometry correction, and each pixel is to the contribution factor of crowd density on the acquisition plane of delineation;
Step 6: utilize contribution factor that the crowd's spatial area that obtains in the step 4 is done weighted, the crowd's spatial area after the weighting is crowd density with the ratio of the area of area-of-interest.
According to the embodiment of the invention, described mosaic image difference MID is characterized as:
MID t ( m , n ) = 1 , if | | M t ( m , n ) - M t - 1 ( m , n ) | | ∞ > T t 0 , else
Wherein: M t ( m , n ) = 1 L M 2 Σ i = m L M ( m + 1 ) L M - 1 Σ j = nL M ( n + 1 ) L M - 1 I t ( i , j )
‖ ‖ Represent each component absolute value the maximum of a vector; I t(i, j) the RGB vector of the capable j row of expression t two field picture i; L MThe length of side of expression mosaic square; M t(m, n) capable n the mosaic zone of expression m is at the average color of t frame, MID t(m n) has characterized the difference of the average color of capable n mosaic zone t frame of m and t-1 frame, and this difference is quantized into two ranks: if the component of the absolute value maximum of difference value vector is greater than certain threshold value T tThen note does 1, otherwise note does 0.
According to the embodiment of the invention, described threshold value T tBy being calculated as:
T t=T 0α t
Wherein: α t=1+ (B t-127)/255,
B tBe the mean flow rate of t two field picture, T 0Get default value.
According to the embodiment of the invention, the described mosaic image difference MID time evenly distributes, adopt three statistical parameters of the MID sequence in check a period of time: the MID eigenwert is that average, the MID eigenwert of time of 1 is that the variance of time of 1 and MID eigenwert are whether the sheet number of 1 probability non-zero timeslice satisfies certain condition and determine that whether this MID sequence obeys temporal even distribution, uses indicative function U t(m n) is expressed as:
U t ( m , n ) = 1 if N Nz > N s / 2 and | Mean - ( 1 + N s ) / 2 | < N s / 5 and Var > &sigma; t ( m , n ) 0 else
Wherein: N sThe sheet number of the timeslice that is divided for the time period of being analyzed;
N NZ=| { P l≠ 0|l=1...N s|, expression MID eigenwert is the sheet number of 1 probability non-zero timeslice;
Mean = &Sigma; l = 1 N s lP l , Expression MID eigenwert is the average of time of 1;
Var = &Sigma; l = 1 N s ( l - Mean ) 2 P l , Expression MID eigenwert is the variance of time of 1;
P lBe after the MID sequence is divided into timeslice, the MID eigenwert is 1 probability in each timeslice;
The threshold value σ of time variance t(m, n) relevant with this mosaic blockage location in space; Zonule according to this mosaic blockage place all is that people or no one are arranged in the piecewise analysis time in history, and the size of variance threshold values is set.
According to the embodiment of the invention, the zone whether capable q the grid of described grid computing p finally is included into the crowd is its G t(p, q) whether value is 1, G t(p, q) by following formula decision:
G t ( p , q ) = 1 if | { M ( m , n ) | U t ( m , n ) = 1 , M ( m , n ) &Subset; G ( p , q ) } | > 0 0 else
Wherein | { } | the number of a set element of expression, M (m, n) capable n the mosaic zone of expression m, G (p, q) capable q the net region of expression p; G t(p is that 1 implication is q): if the t frame constantly grid G (p has the zone that is marked as the people in the mosaic step in front of and above quantity in q), and then whole grid all is marked as people's zone at the t frame.
According to the embodiment of the invention, described geometry correction is that two straight lines of delimitation obtain the end point in the scene, calculates the contribution factor S of each pixel then C(x, y):
S C ( x , y ) = ( y r - y v y - y v ) 2
Wherein (x y) is pixel coordinate, y rThe y coordinate of a horizontal reference line of choosing arbitrarily on the presentation video plane, y vThe y coordinate of expression disappearance point.
According to the embodiment of the invention, the net result of described crowd density
Figure A200710179883D00084
For the ratio of the area of the area-of-interest after the foreground area after the weighting and the weighting is:
D t P = &Sigma; FG S C ( x , y ) &Sigma; BG S C ( x , y )
Wherein: FG={ (x, y) | G t(p, q)=1, (x, y) ∈ (G (p, q) ∩ D ROI), (x, y) remarked pixel coordinate, D ROIThe interested image-region that expression delimited, the physical meaning of FG be expression all not only in interesting areas but also the set of all pixel coordinates in being marked as people's grid; BG={ (x, y) | (x, y) ∈ D ROI, represent the pixel coordinate set of all area-of-interests.
The present invention compares with the up-to-date method of delivering both at home and abroad at present has several obvious advantages:
1) do not need reference background image, also do not need background modeling, have nothing to do with scene texture, and can adapt to the slow variation of illumination, relatively robust is used conveniently.
2) mathematical model is simple, can accurately locate crowd's space distribution and size, and intuitive is strong; Calculated amount is little, is fit to the real-time vision monitoring, and the computation process of crowd density has meaning directly perceived.
3) calculated amount is little, can satisfy the requirement that real-time video is handled.
The present invention can be widely used in monitoring and the management that the public place that the crowd is dense is detained on public transport, subway and square etc.
Description of drawings
Fig. 1 technical solution of the present invention process flow diagram
Fig. 2 geometry correction synoptic diagram of the present invention
Bus stop, Fig. 3 Beijing scene synoptic diagram
Fig. 4 t 1Moment platform image
Fig. 5 t 1The MID characteristic sequence is obeyed the mosaic block that the even time distributes constantly
Fig. 6 t 1The crowd's that moment gridding method is calculated space distribution (crowd density is 0.6 after the geometry correction)
Fig. 7 t 2Moment platform image
Fig. 8 t 2The MID characteristic sequence is obeyed the mosaic block that the even time distributes constantly
Fig. 9 t 2The crowd's that moment gridding method is calculated space distribution
Embodiment
Describe each related detailed problem in the technical solution of the present invention in detail below in conjunction with accompanying drawing.Be to be noted that described embodiment only is intended to be convenient to the understanding of the present invention, and it is not played any qualification effect.
Thought main points of the present invention are:
1) stable crowd necessarily has various trickle motions, such as whispering to each other, turn round, move etc.
2) from the occupied space of time and crowd, these trickle motions are the even distribution on presentative times and the space substantially.
3) on the basis that detects these trickle motions, check they whether the obedience time go up and the space on even distribution then can determine crowd's distribution range.
4) according to the perspective principle detected crowd's area is made weighted, obtain more accurate crowd density.
Whole technical proposal process flow diagram of the present invention as shown in Figure 1.Below involved ins and outs in the invention are illustrated, provided the experimental result under the public transport platform scene at last.
1. video input and frame extract
Adopt video camera to catch video, after importing computer or flush bonding processor into, the mode that original input video takes every several frames to get 1 frame is done the frame extraction, and the digital image sequence that transmits from camera was generally for 25 frame/seconds, and the movable information among the detection crowd does not need so high frame per second.Before doing the crowd density analysis, can sample, extract a frame such as per 5 frames to frame sequence.Frame extracts not only can reduce frame per second, reduces calculated amount, and helps motion detection, because the movement velocity of the little motion among the crowd often relatively slowly, too fast frame per second can cause the difference between frame and the frame too little, is unfavorable for motion detection.Generally, it is proper that frame per second was reduced to for 5 frame/seconds.
(2.MID mosaic image difference) feature extraction
From sequence of frames of video, extract mosaic image difference MID feature, be used for the crowd's of detecting trickle motion.
MID (Mosaic Image Difference) is the effective ways of the motion that produces among a kind of crowd of sign.
At first to be divided into a series of length of side be L to the t two field picture that will import MThe mosaic square, and calculate the RGB color value in each mosaic square zone, formula is as follows:
M t ( m , n ) = 1 L M 2 &Sigma; i = m L M ( m + 1 ) L M - 1 &Sigma; j = nL M ( n + 1 ) L M - 1 I t ( i , j ) - - - ( 1 )
Wherein, I t(i, j) the RGB vector of the capable j row of expression t two field picture i; L MThe length of side of expression mosaic square.M t(m, n) average color in capable n the mosaic zone of m of expression t frame mosaic image.M, n, i, the span of j is relevant with picture size.
The computing formula of mosaic image difference MID then is:
MID t ( m , n ) = 1 , if | | M t ( m , n ) - M t - 1 ( m , n ) | | &infin; > T t 0 , else - - - ( 2 )
Wherein, ‖ ‖ Represent each component absolute value the maximum of a vector; MID t(m n) has characterized the difference of the average color of capable n mosaic zone t frame of m and t-1 frame, and this difference is quantized into two ranks: if the component of the absolute value maximum of difference value vector greater than certain threshold value T tThen note does 1, otherwise note does 0.
Threshold value T t=T 0α t, T 0Be constant, generally get 15, α tBe that an adaptive threshold is adjusted the factor, it changes with the overall brightness of t frame:
α t=1+(B t-127)/255, (3)
B tBe the mean flow rate of t two field picture, T 0Get default value.
3.MID even distribution inspection of time
The check mosaic image difference MID time evenly distributes, and is used for determining whether the motion that produces in the corresponding mosaic blockage is the motion that stable crowd produces.If not the motion that stable crowd produces, then can not think that the crowd is arranged in this mosaic square., but do not stay through a mosaic zone such as a people, also can to produce some values be 1 MID feature in this mosaic zone at short notice, and this situation just need evenly distribute by the time of check MID and get rid of.In addition, it can all not be 1 at every frame also that the MID eigenwert of the mosaic blockage of stablizing the crowd is arranged, because it is motionless that the people among the crowd may keep in a period of time, need the time distribution character of the MID sequence by checking this mosaic blockage to predict whether this mosaic is that the crowd is arranged at present frame in this case.
Supposing has stable crowd to exist in the t frame mosaic blockage that the capable n of m is listed as constantly, and according to hypothesis, the MID feature of capable n the mosaic of m is at t-N MFrame is to the interior during this period of time sequence { MID of t frame k(m, n) | t-N M<k≤t} should be that a string value is 0 and 1 equally distributed random number, wherein N MBe the length of the sequence analyzed (it is different to look concrete scene, about general 75 frames, general 15 seconds).In order to check this MID sequence whether to obey temporal even distribution, this sequence is divided into N by the time sIndividual timeslice (visual field scape and different, general every period general lasting 3 seconds), and check three statistics of this MID sequence: the MID eigenwert is the sheet number of the timeslice of 1 probability non-zero, and the MID eigenwert is 1 the average moment, and the MID eigenwert is the variance in moment of 1.Order:
S = &Sigma; k = i - N M t MID k ( m , n ) - - - ( 4 )
P l = 1 S &Sigma; k = t - N M + ( l - 1 ) &times; N M / N s k = t - N M + l &times; N M / N s - 1 MID k ( m , n ) , l = 1 . . . N s - - - ( 5 )
N NZ=|{P l≠0|l=1...N s}| (6)
Mean = &Sigma; l = 1 N s lP l - - - ( 7 )
Var = &Sigma; l = 1 N s ( l - Mean ) 2 P l - - - ( 8 )
Wherein | { } | the number of a set element of expression, S represents t-N MFrame to the t frame during this period of time in, the MID eigenwert of the capable n row of m mosaic is 1 total degree that occurs, P lL timeslice MID eigenwert in time period of being analyzed of expression is 1 probability, and the MID eigenwert is 1 the average moment in the time period that Mean represents to be analyzed, and Var represents that interior MID eigenwert of the time period of being analyzed is the variance in moment of 1, N NZThe sheet number of the probability non-zero timeslice that mosaic changes in the time period that expression is analyzed, P in theory l=1/N s, Mean=(1+N s)/2, Var = ( N s 2 - 1 ) / 12 .
Define an indicative function U t(m, n) (in the mosaic blockage of the capable n row of value 1 expression t frame m the people is arranged, otherwise the expression no one):
U t ( m , n ) = 1 if N Nz > N s / 2 and | Mean - ( 1 + N s ) / 2 | < N s / 5 and Var > &sigma; t ( m , n ) 0 else - - - ( 9 )
Wherein: N sThe sheet number of the timeslice that is divided for the time period of being analyzed;
N NZ=| { P l≠ 0|l=1...N s|, expression MID eigenwert is the sheet number of 1 probability non-zero timeslice;
Mean = &Sigma; l = 1 N s lP l , Expression MID eigenwert is the average of time of 1;
Var = &Sigma; l = 1 N s ( l - Mean ) 2 P l , Expression MID eigenwert is the variance of time of 1;
P lBe after the MID sequence is divided into timeslice, the MID eigenwert is 1 probability in each timeslice.
The threshold value σ of time variance t(m, n) relevant with this mosaic blockage location in space, when all there is the people zonule at a mosaic square place (grid of mentioning later) in a period of time in history, then the time variance threshold value can be smaller; When in a period of time in history during the no one, the time variance threshold value can be provided with bigger; Provide concrete computing formula in the back.
4. gridding method is calculated crowd's space distribution
Utilize motion that gridding method calculates the crowd in spatial distributions, and will feed back to step 3 with the relevant parameter that is used for the time distribution inspection of space distribution; Indicative function U t(m, mosaic n)=1 is a sampling in the occupied zone of crowd only, because crowd's shape is unpredictable, estimate crowd's spatial area, and a kind of feasible scheme is a gridding method.According to concrete scene, it is W that the plane of delineation is divided into a series of sizes g* H gGrid, W generally speaking g* H g=12 * 12.
If capable q the grid of p has the people then to be designated as at the t frame: G t(p, q)=1, otherwise G t(p, q)=0.With M (m, n) expression m capable n mosaic zone, with G (p q) represents capable q the net region of p, then:
G t ( p , q ) = 1 if | { M ( m , n ) | U t ( m , n ) = 1 , M ( m , n ) &Subset; G ( p , q ) } | > 0 0 else - - - ( 10 )
Wherein | { } | the number of a set element of expression, M (m, n) capable n the mosaic zone of expression m, G (p, q) capable q the net region of expression p; G t(p is that 1 implication is q): if the t frame constantly grid G (p has the zone that is marked as the people in the mosaic step in front of and above quantity in q), and then whole grid all is marked as people's zone at the t frame.
Suppose that interested image-region is D ROI, the area of a grid is designated as S G, the t frame total area A that on the plane of delineation, occupies of crowd constantly so tFor:
A t = S G &Sigma; G ( p , q ) &Subset; D ROI G t ( p , q ) - - - ( 11 )
When not needing to consider the influencing of perspective projection, crowd density D tMay be calculated:
D t = A t S D - - - ( 12 )
S wherein DBe region D ROIArea.
Above-mentioned parameter σ t(m is n) with preface { G k(p, q) | t-N G≤ k<t, M (m, n) ∈ G (p, q) } relevant:
&sigma; t ( m , n ) = &sigma; 0 + &sigma; 1 ( 1 - 1 N G &Sigma; k = t - N G t - 1 G k ( p , q ) ) - - - ( 13 )
N wherein G=2N M, σ 0, σ 1Be constant, visual field scape and deciding is general &sigma; 0 = ( N s 2 - 1 ) / 12 6 , &sigma; 1 = ( N s 2 - 1 ) / 12 3 .
5. geometry correction
Crowd's scene with obvious perspective phenomenon is done geometry correction, and each pixel is to the contribution factor of crowd density on the acquisition plane of delineation.
When there is more serious perspective phenomenon (same object in the projection of scene on the plane of delineation, closely seem big from video camera, far seem little from video camera) time, formula (12) can not characterize crowd's density well, therefore need make weighted to the contribution of different pixels on the plane of delineation.Suppose that ground is the plane, the people is perpendicular to ground.
Shown in accompanying drawing 2 geometry correction synoptic diagram of the present invention, suppose at horizontal reference line y rThe plane P at place 5P 1P 4P 8On a size is arranged is Δ W r* Δ H rObject O A, the object O of identical size BBe put into the plane P at horizontal line y place 6P 2P 3P 7The size of correspondence is Δ W * Δ H when last, when these two object areas level off to zero the time O AWith O BThe ratio of area is the pixel and the reference line y at horizontal line y place rThe pixel at place is to the ratio of the contribution of crowd density.According to the principle of perspective imaging, establish the some P that disappears vCoordinate be (x v, y v), reference line is y=y r=H/2 can release O by the simple geometric relation AWith O BThe ratio of area is:
S C ( x , y ) = ( y r - y v y - y v ) 2 - - - ( 14 )
This is any one pixel I (x, contribution factor y) on the plane of delineation just.(x y) represents any one pixel coordinate, y rThe y coordinate of a selected horizontal reference line on the presentation video plane, y vThe y coordinate of expression disappearance point.
X WY WZ WExpression three-dimensional world coordinate system.
6. crowd density calculates
Utilize contribution factor that the crowd's spatial area that obtains in the step 4 is done weighted, the crowd's spatial area after the weighting is crowd density with the ratio of the area of area-of-interest.The note set
BG={ (x, y) | (x, y) ∈ D ROI, then have
Crowd's area after the geometry correction
Figure A200710179883D00152
For:
A t P = &Sigma; FG S C ( x , y )
Crowd density after the geometry correction
Figure A200710179883D00154
For:
D t P = A t P &Sigma; BG S C ( x , y ) - - - ( 16 )
Wherein: FG={ (x, y) | G t(p, q)=1, (x, y) ∈ (G (p, q) ∩ D ROI), (x, y) remarked pixel coordinate, D ROIThe interested image-region that expression delimited.The physical meaning of FG be expression all not only in interesting areas but also the set of all pixel coordinates in being marked as people's grid;
BG={ (x, y) | (x, y) ∈ D ROI, represent the pixel coordinate set of all area-of-interests.
More than being exactly the detailed description of the invention process step, is example with bus stop, Beijing scene below, provides experimental result.As shown in Figure 3, certain bus stop is a scene that typically has the perspective phenomenon, and point coordinate is (144 ,-10) by obtaining disappearing after the projection straight line of ground level parallel lines on the plane of delineation in the artificial setting three dimensions.
After frame extracted, the actual frame per second of this experiment was about for 5 frame/seconds, and some parameters in addition are as follows:
Threshold parameter T in the formula of calculating MID feature 0=15;
The mosaic blockage length of side: L M=4;
The grid square length of side: L G=12;
The length of the sequence of MID even distribution inspection of characteristic time: N M=75;
The number of the timeslice of MID even distribution inspection of characteristic time: N S=5;
Fig. 4 is t 1The image of platform constantly, this moment, people's distribution approximately occupied more than whole public transport platform general; Fig. 5 is t 1Detected MID characteristic sequence is obeyed the mosaic blockage set that the even time distributes constantly; Fig. 6 is t 1The crowd's that moment grid gridding method obtains space distribution, the crowd density that obtains after the geometry correction is 0.6, meets the observations of human eye substantially.
Fig. 7 is t 2The image of moment platform, this moment, people's distribution occupied almost whole public transport platform; Fig. 8 is t 2Detected MID characteristic sequence is obeyed the mosaic blockage set that the even time distributes constantly; Fig. 9 is t 2The crowd's that moment gridding method obtains space distribution, the crowd density after the geometry correction is 0.95, meets the eye-observation result.
Experiment showed, that crowd density analysis method proposed by the invention can locate crowd's space distribution exactly, and reasonably calculate crowd density; Compare with other existing crowd density computing method, this method intuitive is strong, and restricted few, calculated amount is little, and the crowd who is fit to public places such as public transport, subway and square monitors.
The above; only be the embodiment among the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with the people of this technology in the disclosed technical scope of the present invention; can understand conversion or the replacement expected; all should be encompassed in of the present invention comprising within the scope, therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.

Claims (7)

1, a kind of crowd density analysis method based on statistical nature is characterized in that, comprises step:
Step 1: adopt video camera to catch video, the mode that original input video takes every several frames to get 1 frame is done the frame extraction, reduce frame per second;
Step 2: from sequence of frames of video, extract mosaic image difference MID feature, be used for the crowd's of detecting trickle motion;
Step 3: the check mosaic image difference MID time evenly distributes, and is used for determining whether to have in the corresponding mosaic blockage stable crowd's motion;
Step 4: utilize motion that gridding method calculates the crowd in spatial distributions, and will feed back to step 3 with the relevant parameter that is used for the time distribution inspection of space distribution;
Step 5: the crowd's scene with obvious perspective phenomenon is done geometry correction, and each pixel is to the contribution factor of crowd density on the acquisition plane of delineation;
Step 6: utilize contribution factor that the crowd's spatial area that obtains in the step 4 is done weighted, the crowd's spatial area after the weighting is crowd density with the ratio of the area of area-of-interest.
According to right 1 described crowd density analysis method, it is characterized in that 2, described mosaic image difference MID is characterized as:
MID t ( m , n ) = 1 , if | | M t ( m , n ) - M t - 1 ( m , n ) | | &infin; > T t 0 , else
Wherein:
M t ( m , n ) = 1 L M 2 &Sigma; i = mL M ( m + 1 ) L M - 1 &Sigma; j = nL M ( n + 1 ) L M - 1 I t ( i , j )
‖ ‖ Represent each component absolute value the maximum of a vector; I t(i, j) the RGB vector of the capable j row of expression t two field picture i; L MThe length of side of expression mosaic square; M t(m, n) capable n the mosaic zone of expression m is at the average color of t frame, MID t(m n) has characterized the difference of the average color of capable n mosaic zone t frame of m and t-1 frame, and this difference is quantized into two ranks: if the component of the absolute value maximum of difference value vector is greater than certain threshold value T tThen note does 1, otherwise note does 0.
3, according to right 2 described crowd density analysis methods, it is characterized in that described threshold value T tBy being calculated as:
T t=T 0α t
Wherein: α t=1+ (B t-127)/255,
B tBe the mean flow rate of t two field picture, T 0Get default value.
4, according to right 2 described crowd density analysis methods, it is characterized in that, the described mosaic image difference MID time evenly distributes, adopt three statistical parameters of the MID sequence in check a period of time: the MID eigenwert is that average, the MID eigenwert of time of 1 is that the variance of time of 1 and MID eigenwert are whether the sheet number of 1 probability non-zero timeslice satisfies certain condition and determine that whether this MID sequence obeys temporal even distribution, uses indicative function U t(m n) is expressed as:
U t ( m , n ) = 1 if N Nz > N s / 2 and | Mean - ( 1 + N s ) / 2 | < N s / 5 and Var > &sigma; t ( m , n ) 0 else
Wherein: N sThe sheet number of the timeslice that is divided for the time period of being analyzed;
N NZ=| { P l≠ 0|l=1...N s|, expression MID eigenwert is the sheet number of 1 probability non-zero timeslice;
Mean = &Sigma; l = 1 N s lP l , Expression MID eigenwert is the average of time of 1;
Var = &Sigma; l = 1 N s ( l - Mean ) 2 P l , Expression MID eigenwert is the variance of time of 1;
P lBe after the MID sequence is divided into timeslice, the MID eigenwert is 1 probability in each timeslice;
The threshold value σ of time variance t(m, n) relevant with this mosaic blockage location in space; When the zonule at this mosaic blockage place all is that people or no one are arranged in the piecewise analysis time in history, the size of variance threshold values is set.
5, according to right 1 described crowd density analysis method, it is characterized in that: the zone whether capable q the grid of described grid computing p finally is included into the crowd is its G t(p, q) whether value is 1, G t(p, q) by following formula decision:
G t ( p , q ) = 1 if | { M ( m , n ) | U t ( m , n ) = 1 , M ( m , n ) &Subset; G ( p . q ) } | > 0 0 else
Wherein | { } | the number of a set element of expression, M (m, n) capable n the mosaic zone of expression m, G (p, q) capable q the net region of expression p; G t(p is that 1 implication is q): if the t frame constantly grid G (p has the zone that is marked as the people in the mosaic step in front of and above quantity in q), and then whole grid all is marked as people's zone at the t frame.
6, according to right 1 described crowd density analysis method, it is characterized in that: described geometry correction is that two straight lines of delimitation obtain the end point in the scene, calculates the contribution factor S of each pixel then C(x, y):
S C ( x , y ) = ( y r - y v y - y v ) 2
Wherein (x y) is pixel coordinate, y rThe y coordinate of a horizontal reference line of choosing arbitrarily on the presentation video plane, y vThe y coordinate of expression disappearance point.
7, according to right 1 described side's crowd density analytic approach, it is characterized in that the net result of described crowd density
Figure A200710179883C00042
For the ratio of the area of the area-of-interest after the foreground area after the weighting and the weighting is:
D t P = &Sigma; FG S C ( x , y ) &Sigma; BG S C ( x , y )
Wherein: FG={ (x, y) | G t(p, q)=1, (x, y) ∈ (G (p, q) ∩ D ROI), (x, y) remarked pixel coordinate, D ROIThe interested image-region that expression delimited, FG represent that all are not only in interesting areas but also the set of all pixel coordinates in being marked as people's grid; BG={ (x, y) | (x, y) ∈ D ROI, represent the pixel coordinate set of all area-of-interests.
CN2007101798837A 2007-12-19 2007-12-19 Crowd density analysis method based on statistical characteristics Expired - Fee Related CN101464944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101798837A CN101464944B (en) 2007-12-19 2007-12-19 Crowd density analysis method based on statistical characteristics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101798837A CN101464944B (en) 2007-12-19 2007-12-19 Crowd density analysis method based on statistical characteristics

Publications (2)

Publication Number Publication Date
CN101464944A true CN101464944A (en) 2009-06-24
CN101464944B CN101464944B (en) 2011-03-16

Family

ID=40805516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101798837A Expired - Fee Related CN101464944B (en) 2007-12-19 2007-12-19 Crowd density analysis method based on statistical characteristics

Country Status (1)

Country Link
CN (1) CN101464944B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102496058A (en) * 2011-11-11 2012-06-13 北京声迅电子股份有限公司 Passenger flow density detection method
CN102722703A (en) * 2012-06-06 2012-10-10 深圳市海亿达能源科技股份有限公司 Integration space population distribution monitoring device and monitoring method
CN102044073B (en) * 2009-10-09 2013-05-29 汉王科技股份有限公司 Method and system for judging crowd density in image
CN103226860A (en) * 2013-04-12 2013-07-31 中国民航大学 Passage passenger traffic density estimation method
CN104850843A (en) * 2015-05-26 2015-08-19 中科院成都信息技术股份有限公司 Method for rapidly detecting personnel excessive gathering in high-accuracy positioning system
CN105791774A (en) * 2016-03-31 2016-07-20 北京工业大学 Surveillance video transmission method based on video content analysis
CN106022460A (en) * 2016-05-25 2016-10-12 重庆市勘测院 Crowd density real-time monitoring method based on laser radar
CN106203694A (en) * 2016-07-07 2016-12-07 百度在线网络技术(北京)有限公司 Place crowding forecast model foundation, place crowding Forecasting Methodology and device
CN107016329A (en) * 2015-11-20 2017-08-04 松下电器(美国)知识产权公司 Image processing method
CN107203760A (en) * 2017-06-09 2017-09-26 中国联合网络通信集团有限公司 Crowd density monitoring method and device
CN107264797A (en) * 2016-04-06 2017-10-20 成都积格科技有限公司 Crowd massing early warning unmanned plane
CN107911653A (en) * 2017-11-16 2018-04-13 王磊 The module of intelligent video monitoring in institute, system, method and storage medium
CN108877228A (en) * 2018-08-31 2018-11-23 深圳市研本品牌设计有限公司 A kind of unmanned plane guided for scenic spot
CN108955519A (en) * 2018-04-09 2018-12-07 江苏金海湾智能制造有限公司 Express delivery living object detection system and method
CN109816979A (en) * 2019-02-19 2019-05-28 辽宁师范大学 Consider bus arrival frequency and by bus the public bus network recommended method of comfort level
CN109831623A (en) * 2019-01-09 2019-05-31 瞿敏 Quantity of service control method
CN110335460A (en) * 2019-05-08 2019-10-15 上海电机学院 A kind of public traffic information intelligent interactive system and method
CN111279392A (en) * 2017-11-06 2020-06-12 三菱电机株式会社 Cluster density calculation device, cluster density calculation method, and cluster density calculation program
CN111626141A (en) * 2020-04-30 2020-09-04 上海交通大学 Crowd counting model establishing method based on generated image, counting method and system
CN112261666A (en) * 2020-11-09 2021-01-22 牟茹月 Indoor automatic coverage system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031645A (en) * 2004-07-12 2006-02-02 Nariyuki Mitachi Real-time estimation method for dynamic crowd density and crowd accident prevention system
CN1901725B (en) * 2005-07-19 2010-09-01 深圳市建恒测控股份有限公司 Statistic system and method for crowd short-term density

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102044073B (en) * 2009-10-09 2013-05-29 汉王科技股份有限公司 Method and system for judging crowd density in image
CN102496058B (en) * 2011-11-11 2014-09-17 北京声迅电子股份有限公司 Passenger flow density detection method
CN102496058A (en) * 2011-11-11 2012-06-13 北京声迅电子股份有限公司 Passenger flow density detection method
CN102722703A (en) * 2012-06-06 2012-10-10 深圳市海亿达能源科技股份有限公司 Integration space population distribution monitoring device and monitoring method
CN103226860A (en) * 2013-04-12 2013-07-31 中国民航大学 Passage passenger traffic density estimation method
CN103226860B (en) * 2013-04-12 2015-05-20 中国民航大学 Passage passenger traffic density estimation method
CN104850843B (en) * 2015-05-26 2018-05-01 中科院成都信息技术股份有限公司 A kind of method that quick testing staff excessively assembles in high-accuracy position system
CN104850843A (en) * 2015-05-26 2015-08-19 中科院成都信息技术股份有限公司 Method for rapidly detecting personnel excessive gathering in high-accuracy positioning system
CN107016329A (en) * 2015-11-20 2017-08-04 松下电器(美国)知识产权公司 Image processing method
CN107016329B (en) * 2015-11-20 2021-12-21 松下电器(美国)知识产权公司 Image processing method
CN105791774A (en) * 2016-03-31 2016-07-20 北京工业大学 Surveillance video transmission method based on video content analysis
CN107264797B (en) * 2016-04-06 2019-12-17 成都积格科技有限公司 Crowd gathers early warning unmanned aerial vehicle
CN107264797A (en) * 2016-04-06 2017-10-20 成都积格科技有限公司 Crowd massing early warning unmanned plane
CN106022460B (en) * 2016-05-25 2018-08-10 重庆市勘测院 Crowd density method of real-time based on laser radar
CN106022460A (en) * 2016-05-25 2016-10-12 重庆市勘测院 Crowd density real-time monitoring method based on laser radar
CN106203694A (en) * 2016-07-07 2016-12-07 百度在线网络技术(北京)有限公司 Place crowding forecast model foundation, place crowding Forecasting Methodology and device
CN106203694B (en) * 2016-07-07 2022-01-04 百度在线网络技术(北京)有限公司 Method and device for building site congestion degree prediction model and predicting site congestion degree
CN107203760A (en) * 2017-06-09 2017-09-26 中国联合网络通信集团有限公司 Crowd density monitoring method and device
CN111279392B (en) * 2017-11-06 2023-12-15 三菱电机株式会社 Cluster density calculation device, cluster density calculation method, and computer-readable storage medium
CN111279392A (en) * 2017-11-06 2020-06-12 三菱电机株式会社 Cluster density calculation device, cluster density calculation method, and cluster density calculation program
CN107911653A (en) * 2017-11-16 2018-04-13 王磊 The module of intelligent video monitoring in institute, system, method and storage medium
CN108955519A (en) * 2018-04-09 2018-12-07 江苏金海湾智能制造有限公司 Express delivery living object detection system and method
CN108955519B (en) * 2018-04-09 2020-05-22 江苏金海湾智能制造有限公司 Express delivery living object detection system and method
CN108877228A (en) * 2018-08-31 2018-11-23 深圳市研本品牌设计有限公司 A kind of unmanned plane guided for scenic spot
CN108877228B (en) * 2018-08-31 2021-04-09 辽宁博昊土地科技发展有限公司 A unmanned aerial vehicle for scenic spot guides
CN109831623A (en) * 2019-01-09 2019-05-31 瞿敏 Quantity of service control method
CN109816979B (en) * 2019-02-19 2021-07-27 辽宁师范大学 Bus route recommendation method considering bus arrival frequency and riding comfort
CN109816979A (en) * 2019-02-19 2019-05-28 辽宁师范大学 Consider bus arrival frequency and by bus the public bus network recommended method of comfort level
CN110335460A (en) * 2019-05-08 2019-10-15 上海电机学院 A kind of public traffic information intelligent interactive system and method
CN111626141A (en) * 2020-04-30 2020-09-04 上海交通大学 Crowd counting model establishing method based on generated image, counting method and system
CN111626141B (en) * 2020-04-30 2023-06-02 上海交通大学 Crowd counting model building method, counting method and system based on generated image
CN112261666A (en) * 2020-11-09 2021-01-22 牟茹月 Indoor automatic coverage system and method
CN112261666B (en) * 2020-11-09 2024-01-12 广西崇高电子科技有限公司 Indoor automatic coverage method

Also Published As

Publication number Publication date
CN101464944B (en) 2011-03-16

Similar Documents

Publication Publication Date Title
CN101464944B (en) Crowd density analysis method based on statistical characteristics
CN105447458B (en) A kind of large-scale crowd video analytic system and method
CN104123544B (en) Anomaly detection method and system based on video analysis
CN105027550B (en) For handling visual information with the system and method for detecting event
CN105678803A (en) Video monitoring target detection method based on W4 algorithm and frame difference
CN103310444B (en) A kind of method of the monitoring people counting based on overhead camera head
CN109886241A (en) Driver fatigue detection based on shot and long term memory network
CN103279737B (en) A kind of behavioral value method of fighting based on space-time interest points
CN103077423B (en) To run condition detection method based on crowd&#39;s quantity survey of video flowing, local crowd massing situation and crowd
CN111047818A (en) Forest fire early warning system based on video image
CN102156880A (en) Method for detecting abnormal crowd behavior based on improved social force model
CN105208325B (en) The land resources monitoring and early warning method captured and compare analysis is pinpointed based on image
CN106022230A (en) Video-based detection method for drowning event in swimming pool
EP2013817A2 (en) Video segmentation using statistical pixel modeling
CN105117683B (en) Detection and early warning method for dense crowd in public place
CN110633678B (en) Quick and efficient vehicle flow calculation method based on video image
CN103425959B (en) Flame video detection method for identifying fire hazard
CN104820995A (en) Large public place-oriented people stream density monitoring and early warning method
CN102892007A (en) Method and system for facilitating color balance synchronization between a plurality of video cameras as well as method and system for obtaining object tracking between two or more video cameras
CN103198296A (en) Method and device of video abnormal behavior detection based on Bayes surprise degree calculation
CN106548142A (en) Crowd&#39;s incident detection and appraisal procedure in a kind of video based on comentropy
CN104700405A (en) Foreground detection method and system
CN103049748B (en) Behavior monitoring method and device
Wang et al. Video anomaly detection method based on future frame prediction and attention mechanism
CN106056078A (en) Crowd density estimation method based on multi-feature regression ensemble learning

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
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: 20110316

Termination date: 20171219