CN103839232A - Pedestrian shadow restraining method based on block mass model - Google Patents

Pedestrian shadow restraining method based on block mass model Download PDF

Info

Publication number
CN103839232A
CN103839232A CN201410020822.6A CN201410020822A CN103839232A CN 103839232 A CN103839232 A CN 103839232A CN 201410020822 A CN201410020822 A CN 201410020822A CN 103839232 A CN103839232 A CN 103839232A
Authority
CN
China
Prior art keywords
pedestrian
agglomerate
shadow
shade
shadow region
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
CN201410020822.6A
Other languages
Chinese (zh)
Other versions
CN103839232B (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.)
Hohai University HHU
Original Assignee
Hohai University HHU
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 Hohai University HHU filed Critical Hohai University HHU
Priority to CN201410020822.6A priority Critical patent/CN103839232B/en
Publication of CN103839232A publication Critical patent/CN103839232A/en
Application granted granted Critical
Publication of CN103839232B publication Critical patent/CN103839232B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a pedestrian shadow restraining method based on a block mass model. The method comprises the steps of firstly, constructing a pedestrian block mass model, obtaining a preliminary shaded area by calculating the torque feature of a block mass and the perpendicular column diagram of the block mass and by means of a geometrical method, then taking the gray level, the direction and the central position of the shadow area as parameters to conduct shadow modeling on an overall pedestrian and the shadow area, and trimming the shadow area obtained by preliminarily segmentation. The method can detect and restrain shadows of pedestrians in different directions and of different numbers, the video processing speed is about 7.5 frame/second, and a motion target and the shadow of the motion target can be efficiently and accurately separated out.

Description

A kind of pedestrian's shade inhibition method based on agglomerate model
Technical field
The invention belongs to image processing, video monitoring and traffic safety technology field, specifically refer to a kind of pedestrian's shade inhibition method based on agglomerate model.
Background technology
Video Supervision Technique is exactly the erroneous judgement in order to prevent Security Personnel, utilizes automatic analysis technology to carry out the technology of video monitoring.Current research method all supposes not exist in video sequence shade, and in well-lighted scene, and mobile shade is by by the wrong foreground object that is divided into.This will cause error and the difficulty of the subsequent treatment such as target location estimation, goal behavior analysis and target identification.
At present, the method of moving shadow detection and inhibition is roughly divided into following three classes: based on the method for color model, select a suitable color space, utilize the chromatic characteristic in color space of shadows pixels value to carry out shade inhibition, such as HSV space, color character invariant C1C2C3 space and normalization rgb space, but these methods are easily affected by noise and to light intensity sensitive; Based on the method for physical model, the specific appearance feature of the Method Modeling by physics or study shadows pixels, such as two light source dichromatic reflection model BIDR, but it cannot the processing target tone situation identical with background; Based on the method for texture model, obtain candidate region by shade spectral signature, come differentiation prospect and shade according to the correlativity of these zone-textures again, such as normalized crosscorrelation, Gabor filtering, orthogonal transformations etc., owing to will multiple neighborhoods of a pixel being calculated, therefore operand is larger, real-time is poor.
Therefore, how efficiently and accurately moving target and its shade to be separated, become the hot issue of current research.
Summary of the invention
Technical matters to be solved by this invention is in order to overcome the deficiencies in the prior art, proposes a kind of pedestrian's shade inhibition method based on agglomerate model.First the inventive method builds pedestrian's agglomerate model, then by calculating moment characteristics and the agglomerate vertical histogram of agglomerate, obtains preliminary shadow region by the method for how much.Then, the gray scale of this shadow region, direction, center are carried out to shade modeling as parameter to whole pedestrian and shadow region, former shadow region is pruned, make algorithm herein can difference be detected and be suppressed towards, varying number pedestrian's shade; The video processing speed of the inventive method is about 7.5 frames/s.
In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is: a kind of pedestrian's shade inhibition method based on agglomerate model, comprises the steps:
Steps A, builds pedestrian's agglomerate, and each pedestrian is represented with corresponding agglomerate, and its concrete steps are as follows:
Steps A-1, obtains current frame image, utilizes agglomerate extracting method, and the scene color of current frame image is carried out to cluster, obtains image agglomerate;
Steps A-2, according to described image agglomerate, utilize mixed Gaussian background modeling method, obtain the prospect masterplate of current frame image, obtain foreground moving agglomerate;
Steps A-3, utilize fuzzy clustering method to merge foreground moving agglomerate, obtain pedestrian's agglomerate;
Step B, for pedestrian's agglomerate, utilizes shadow detection method that pedestrian and its shade are tentatively cut apart, and obtains the shadow region of pedestrian's agglomerate:
Step B-1, calculates the center square of pedestrian agglomerate, so the shade that obtains pedestrian's agglomerate towards;
Step B-2, calculates pedestrian agglomerate vertical histogram, obtains the cut-point of pedestrian and shade in pedestrian's agglomerate;
Step B-3, according to the shade of pedestrian's agglomerate towards with the cut-point of pedestrian and shade, determine respectively color average threshold values and the variance threshold values of pedestrian's agglomerate pedestrian and shadow region, select the region of color average and color variance minimum, as the shadow region of pedestrian's agglomerate;
Step C, according to the gray scale of shadow region, size and Orientation, increases and decreases the shadow region of Preliminary detection, obtains pedestrian shadow region; Its detailed process is as follows:
Step C-1, according to the color average of pedestrian's agglomerate shadow region, reject the part that color and this average in pedestrian's agglomerate shadow region differ by more than shadow color threshold values, and the pixel that pedestrian's agglomerate non-hatched area color and this average are less than shadow color threshold values is made as to candidate's shadows pixels;
Step C-2, take pedestrian and Shadow segmentation point as initial point, sets shadow region length and is the N of pedestrian's height doubly; In rejecting pedestrian's agglomerate shadow region, pixel and initial point distance are greater than the part of this shadow region length, and pixel in pedestrian's agglomerate non-hatched area and initial point are made as to candidate's shadows pixels apart from the part that is less than shadow region length;
Step C-3, take pedestrian and Shadow segmentation point as initial point, according to pedestrian's shade towards, pixel in pedestrian's agglomerate region and initial point distance are projected to elliptical coordinate system, reject the part that the distance of pixel and initial point in pedestrian's agglomerate shadow region is greater than threshold values, and the part that the distance of pixel and initial point in pedestrian's agglomerate non-hatched area is less than threshold value is made as to candidate's shadows pixels;
Step C-4, gets common factor by candidate's shadows pixels of above-mentioned steps, the pedestrian shadow region after composition increase and decrease;
Step D, returns to steps A, until video finishes.
In step C-2, described shadow region length is N times of pedestrian's height, and the span of N is: 0<N<0.8.
Described agglomerate refers to that image pixel is spatially communicated with and has the region of identical image feature, and the feature of described agglomerate comprises: agglomerate area coordinate, context marker, shade mark, center agglomerate mark, agglomerate numbering, agglomerate centre coordinate, agglomerate color average.
The invention has the beneficial effects as follows: the present invention proposes a kind of pedestrian's shade inhibition method based on agglomerate model, first described method builds pedestrian's agglomerate model, by calculating moment characteristics and the agglomerate vertical histogram of agglomerate, obtain preliminary shadow region by the method for how much again; Then, the gray scale of this shadow region, direction, center are carried out to shade modeling as parameter to whole pedestrian and shadow region, prune tentatively cutting apart the shadow region obtaining.The inventive method detects and suppresses towards, varying number pedestrian's shade difference, and video processing speed is about 7.5 frames/s, can efficiently and accurately moving target and its shade be separated.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of pedestrian's shade inhibition method based on agglomerate model of the present invention.
Embodiment
Below in conjunction with accompanying drawing, a kind of pedestrian's shade inhibition method based on agglomerate model that the present invention is proposed is elaborated:
As shown in Figure 1, a kind of pedestrian's shade inhibition method based on agglomerate model of the present invention, its step is as follows: the modeling of step 1 pedestrian agglomerate, comprises the steps:
1.1 to each two field picture, is divided into the agglomerate of N*N and calculates pixel color average and the centre coordinate in each agglomerate;
1.2 calculate difference and the centre coordinate distance of the color average between each agglomerates, by the difference of color be less than color threshold values and and centre coordinate distance be less than apart from the agglomerate of threshold values and merge, revise center agglomerate mark, characterize the color distribution of whole scene;
The 1.3 prospect templates of utilizing mixed Gaussian background modeling algorithm to extract, the agglomerate of marker motion;
1.4 centre coordinates take each motion agglomerate are node, utilize fuzzy clustering algorithm Jiang Qi center coordinate distance to be less than apart from the agglomerate of threshold values and again merge, and revise center agglomerate mark, obtain pedestrian's agglomerate.
Step 2 shadow Detection, comprises the steps:
2.1 according to pedestrian's agglomerate array R, calculates agglomerate vertical histogram H rand the angle theta of pedestrian and shade (x) r;
Described agglomerate vertical histogram H r(x), can obtain by the quantity of traversal array R along continuous straight runs statistics vertical direction agglomerate.
Described angle theta r, can calculate by the center square of pedestrian's agglomerate array R (x):
( &mu; p , q ) R = &Sigma; ( x , y ) &Element; R ( x - x &OverBar; ) p ( y - y &OverBar; ) q , ( x &OverBar; , y &OverBar; ) = ( 1 n &Sigma; ( x , y ) &Element; R x , 1 n &Sigma; ( x , y ) &Element; R y )
&theta; R = 1 2 tan - 1 ( 2 &mu; 1,1 &mu; 2,0 - &mu; 0,2 )
Wherein, (μ p,q) rfor the square of pedestrian's agglomerate array R, for the geometric center of pedestrian's agglomerate array R, (x, y) is pedestrian's agglomerate array element R[i] geometric center, n is the length of array R, p, q are respectively x, the exponent number of y square.
2.2 according to agglomerate vertical histogram H r(x) calculate agglomerate histogram of difference dH r(x);
dH R(x)=|H R(x)-max(H R)|
Wherein, H r(x) be agglomerate vertical histogram H rx row component
2.3 calculate pedestrian and Shadow segmentation point P rhorizontal ordinate x r,
Figure BDA0000458070850000044
Wherein, X rbottombe the horizontal ordinate span of agglomerate histogram of difference, the width of pedestrian's agglomerate array overlay area, works as x rwhile having multiple value, retain the point nearest apart from agglomerate histogram crest.
2.4 scanning agglomerate model array R, obtain agglomerate centre coordinate set C r(x);
2.5 pass through P rhorizontal ordinate and C r(x), obtain P rordinate y r, y r=C r(x r)
2.6 utilize angle theta rand P robtain the cut-off rule of pedestrian and shade.Color average and the variance of computed segmentation line both sides picture, select the equal minimum region of color average and variance as preliminary shadow region R 2;
y=mx+c,m=tanθ R,c=y R-x Rtanθ R
Wherein, m is straight slope, and c is straight line intercept, (x r, y r) be cut-point P rcoordinate.
The modeling of step 3 shade, further judges from 3 angles such as the color of shade, size, directions each pixel in the shadow region of tentatively cutting apart, and comprises following steps:
3.1 shade gray scale criterions, μ rtentatively to cut apart shadow region R 2gray average, T hthreshold value, I k(x, y) is the gray-scale value that pedestrian's agglomerate area pixel point (x, y) is located.
3.2 shade size criterion,
Figure BDA0000458070850000046
(x r, y r) be P rpoint coordinate, (x, y) controls area pixel point coordinate, T for pedestrian rolls into a ball dfor threshold value, be no more than 0.8 times of pedestrian's height.
3.3 shade direction criterions, s t = cos &theta; R - sin &theta; R sin &theta; R cos &theta; R x - x R y - y R ,
Figure BDA0000458070850000052
θ rshade direction when tentatively cutting apart, (s, t) is pixel and Shadow segmentation point composition distance vector (x-x r, y-y r) according to shade direction θ r, project the expression behind elliptic coordinates space, T by original coordinates space oritfor T din the expression in elliptic coordinates space.
3.4 merge three accurate sides, build the discrimination formula of increase and decrease shadow region:
d ( x , y ) = w 1 s 2 + t 2 + w 2 | I k ( x , y ) - &mu; R |
w 1=αw 1+(1-α)R dist,w 2=αw 2+(1-α)R grey
w 1 = w 1 w 1 + w 2 , w 2 = w 2 w 1 + w 2
Wherein, α is weight renewal rate, gets 0.1, w herein 1shade length weight, w 2it is shade gray scale weight.Weights can be adjusted automatically according to the matching degree of each factor.
Step 4 shade mark and inhibition, carry out shade modeling to each pixel of foreground area in present frame, if d (x, y) is less than threshold value T s, this pixel can be divided into shadows pixels so.Here T sget shadow region R while tentatively cutting apart 2the average of interior all pixel d values, n is shadow region R 2the quantity of interior pixel, T sexpression formula be:
T s = 1 n &Sigma; ( x , y ) &Element; R 2 d ( x , y ) .

Claims (3)

1. the pedestrian's shade inhibition method based on agglomerate model, is characterized in that, comprises the steps:
Steps A, builds pedestrian's agglomerate, and each pedestrian is represented with corresponding agglomerate, and its concrete steps are as follows:
Steps A-1, obtains current frame image, utilizes agglomerate extracting method, and the scene color of current frame image is carried out to cluster, obtains image agglomerate;
Steps A-2, according to described image agglomerate, utilize mixed Gaussian background modeling method, obtain the prospect masterplate of current frame image, obtain foreground moving agglomerate;
Steps A-3, utilize fuzzy clustering method to merge foreground moving agglomerate, obtain pedestrian's agglomerate;
Step B, for pedestrian's agglomerate, utilizes shadow detection method that pedestrian and its shade are tentatively cut apart, and obtains the shadow region of pedestrian's agglomerate:
Step B-1, calculates the center square of pedestrian agglomerate, so the shade that obtains pedestrian's agglomerate towards;
Step B-2, calculates pedestrian agglomerate vertical histogram, obtains the cut-point of pedestrian and shade in pedestrian's agglomerate;
Step B-3, according to the shade of pedestrian's agglomerate towards with the cut-point of pedestrian and shade, determine respectively color average threshold values and the variance threshold values of pedestrian's agglomerate pedestrian and shadow region, select the region of color average and color variance minimum, as the shadow region of pedestrian's agglomerate;
Step C, according to the gray scale of shadow region, size and Orientation, increases and decreases the shadow region of Preliminary detection, obtains pedestrian shadow region; Its detailed process is as follows:
Step C-1, according to the color average of pedestrian's agglomerate shadow region, reject the part that color and this average in pedestrian's agglomerate shadow region differ by more than shadow color threshold values, and the pixel that pedestrian's agglomerate non-hatched area color and this average are less than shadow color threshold values is made as to candidate's shadows pixels;
Step C-2, take pedestrian and Shadow segmentation point as initial point, sets shadow region length and is the N of pedestrian's height doubly; In rejecting pedestrian's agglomerate shadow region, pixel and initial point distance are greater than the part of this shadow region length, and pixel in pedestrian's agglomerate non-hatched area and initial point are made as to candidate's shadows pixels apart from the part that is less than shadow region length;
Step C-3, take pedestrian and Shadow segmentation point as initial point, according to pedestrian's shade towards, pixel in pedestrian's agglomerate region and initial point distance are projected to elliptical coordinate system, reject the part that the distance of pixel and initial point in pedestrian's agglomerate shadow region is greater than threshold values, and the part that the distance of pixel and initial point in pedestrian's agglomerate non-hatched area is less than threshold value is made as to candidate's shadows pixels;
Step C-4, gets common factor by candidate's shadows pixels of above-mentioned steps, the pedestrian shadow region after composition increase and decrease;
Step D, returns to steps A, until video finishes.
2. a kind of pedestrian's shade inhibition method based on agglomerate model according to claim 1, is characterized in that, in step C-2, described shadow region length is N times of pedestrian's height, and the span of N is: 0<N<0.8.
3. a kind of pedestrian's shade inhibition method based on agglomerate model according to claim 1, it is characterized in that, described agglomerate refers to that image pixel is spatially communicated with and has the region of similar image feature, and agglomerate feature comprises: agglomerate area coordinate, context marker, shade mark, center agglomerate mark, agglomerate numbering, agglomerate centre coordinate, agglomerate color average.
CN201410020822.6A 2014-01-17 2014-01-17 A kind of pedestrian's cast shadow suppressing method based on agglomerate model Expired - Fee Related CN103839232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410020822.6A CN103839232B (en) 2014-01-17 2014-01-17 A kind of pedestrian's cast shadow suppressing method based on agglomerate model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410020822.6A CN103839232B (en) 2014-01-17 2014-01-17 A kind of pedestrian's cast shadow suppressing method based on agglomerate model

Publications (2)

Publication Number Publication Date
CN103839232A true CN103839232A (en) 2014-06-04
CN103839232B CN103839232B (en) 2016-09-07

Family

ID=50802702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410020822.6A Expired - Fee Related CN103839232B (en) 2014-01-17 2014-01-17 A kind of pedestrian's cast shadow suppressing method based on agglomerate model

Country Status (1)

Country Link
CN (1) CN103839232B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016692A (en) * 2017-03-24 2017-08-04 南京航空航天大学 A kind of Moving Shadow Detection Approach based on computer vision
CN109033923A (en) * 2017-06-08 2018-12-18 北京君正集成电路股份有限公司 The method and device of human body direction in a kind of detection picture
CN111105469A (en) * 2019-12-18 2020-05-05 河海大学 Calculation method for obtaining block masses based on graph and local box search

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7447628B2 (en) * 2003-12-19 2008-11-04 Electronics And Telecommunications Research Institute Verb pattern automatic extension and verification apparatus and method for use in Korean-Chinese machine translation system
CN102298781A (en) * 2011-08-16 2011-12-28 长沙中意电子科技有限公司 Motion shadow detection method based on color and gradient characteristics
CN102332157A (en) * 2011-06-15 2012-01-25 夏东 Method for eliminating shadow

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7447628B2 (en) * 2003-12-19 2008-11-04 Electronics And Telecommunications Research Institute Verb pattern automatic extension and verification apparatus and method for use in Korean-Chinese machine translation system
CN102332157A (en) * 2011-06-15 2012-01-25 夏东 Method for eliminating shadow
CN102298781A (en) * 2011-08-16 2011-12-28 长沙中意电子科技有限公司 Motion shadow detection method based on color and gradient characteristics

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐伟: "背景阴影消除设计与实现", 《中国优秀硕士学位论文全文数据库(信息科技辑)》, 15 December 2013 (2013-12-15) *
王书朋等: "利用团块模型进行目标跟踪", 《现电子科技大学学报》, vol. 35, no. 5, 31 October 2008 (2008-10-31) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016692A (en) * 2017-03-24 2017-08-04 南京航空航天大学 A kind of Moving Shadow Detection Approach based on computer vision
CN107016692B (en) * 2017-03-24 2019-09-27 南京航空航天大学 A kind of Moving Shadow Detection Approach based on computer vision
CN109033923A (en) * 2017-06-08 2018-12-18 北京君正集成电路股份有限公司 The method and device of human body direction in a kind of detection picture
CN111105469A (en) * 2019-12-18 2020-05-05 河海大学 Calculation method for obtaining block masses based on graph and local box search
CN111105469B (en) * 2019-12-18 2023-02-14 河海大学 Calculation method for obtaining block masses based on graph and local box search

Also Published As

Publication number Publication date
CN103839232B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
Gerónimo et al. 2D–3D-based on-board pedestrian detection system
CN102542289B (en) Pedestrian volume statistical method based on plurality of Gaussian counting models
CN105260699B (en) A kind of processing method and processing device of lane line data
CN103164858B (en) Adhesion crowd based on super-pixel and graph model is split and tracking
CN103927520B (en) A kind of backlight environment servant&#39;s face detecting method
CN107590492B (en) A kind of vehicle-logo location and recognition methods based on convolutional neural networks
CN102867188B (en) Method for detecting seat state in meeting place based on cascade structure
CN106682586A (en) Method for real-time lane line detection based on vision under complex lighting conditions
CN104463877B (en) A kind of water front method for registering based on radar image Yu electronic chart information
CN103886325B (en) Cyclic matrix video tracking method with partition
CN104636724B (en) A kind of quick Pedestrians and vehicles detection method of in-vehicle camera based on goal congruence
CN104200485A (en) Video-monitoring-oriented human body tracking method
CN103824070A (en) Rapid pedestrian detection method based on computer vision
CN105303191A (en) Method and apparatus for counting pedestrians in foresight monitoring scene
CN103310194A (en) Method for detecting head and shoulders of pedestrian in video based on overhead pixel gradient direction
WO2015096507A1 (en) Method for recognizing and locating building using constraint of mountain contour region
CN105224945B (en) A kind of automobile logo identification method based on joint-detection and identification algorithm
CN104517095A (en) Head division method based on depth image
CN103049765A (en) Method for judging crowd density and number of people based on fish eye camera
CN102768726A (en) Pedestrian detection method for preventing pedestrian collision
CN103839232A (en) Pedestrian shadow restraining method based on block mass model
Satzoda et al. Robust extraction of lane markings using gradient angle histograms and directional signed edges
CN103955673B (en) Body recognizing method based on head and shoulder model
CN113240829B (en) Intelligent gate passing detection method based on machine vision
CN105654104A (en) Pedestrian detection method based on multi-granularity feature

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

Termination date: 20190117