CN105205500A - Vehicle detecting method based on multi-target tracking and cascade classifier combination - Google Patents

Vehicle detecting method based on multi-target tracking and cascade classifier combination Download PDF

Info

Publication number
CN105205500A
CN105205500A CN201510633007.1A CN201510633007A CN105205500A CN 105205500 A CN105205500 A CN 105205500A CN 201510633007 A CN201510633007 A CN 201510633007A CN 105205500 A CN105205500 A CN 105205500A
Authority
CN
China
Prior art keywords
pix
agglomerate
target tracking
cascade classifier
filtering
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.)
Pending
Application number
CN201510633007.1A
Other languages
Chinese (zh)
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201510633007.1A priority Critical patent/CN105205500A/en
Publication of CN105205500A publication Critical patent/CN105205500A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2411Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/08Detecting or categorising vehicles

Abstract

The invention discloses a vehicle detecting method based on multi-target tracking and cascade classifier combination. The method specifically comprises the steps of extracting and screening 15 Haar-like features of a sample, and setting classifier training parameters for classifier training; conducting new target detection based on multi-scale filtering and conducting target tracking. The vehicle detecting method has the advantages of being high in detection precision and high in processing speed.

Description

Based on the vehicle detection that multiple target tracking and cascade classifier merge
Technical field
The present invention relates to image procossing and computer vision field, particularly, relate to a kind of vehicle checking method merged based on multiple target tracking and cascade classifier.
Background technology
Flourish in recent years along with China's communications and transportation cause, the investigation and application of intelligent transportation system (ITS) is more and more paid attention to.Accurately, real-time, complete traffic information collection is the basis of ITS, and wagon detector is then the infrastructure of dynamic information being carried out to Real-time Collection.Along with the develop rapidly of software and hardware technology, various types of wagon detector emerges rapidly.Mainly contain inductive coil detecting device, magnetic force detecting device, microwave detector, ultrasonic detector, infrared detector and video detector etc., in current China preventing road monitoring system, using maximum is inductive coil wagon detector, video-based vehicle detection and microwave vehicle detecting device 3 kinds.
Inductive coil detecting device is earth-buried detecting device, directly can provide that vehicle occurs, vehicle is by telecommunication flow informations such as, vehicle count and lane occupancy ratios.Ordinary Rd all can be arranged, be mainly used in before and after charge station, interchange, tunnel section, urban road, the occasion such as parking lot.The early investment of inductive coil detecting device is less, reliability is high, but safeguards, reinstalls difficulty, and need close track, destroy road surface, operation cost is higher on long terms, this be also restriction its continue a fast-developing lethal factor.
Microwave detector is a kind of radar detedtor being operated in microwave frequency band, and the non-buried detecting device of the traffic flow essential informations such as energy inspection vehicle flow, speed, lane occupancy ratio and vehicle, centre frequency is 10.525GHz, and working method is active.Under weather extremes, performance is outstanding, can all weather operations; Side direction mode can detect multilane; Static vehicle can be detected; Direct-detection speed.But when road has the dividing strip of irony, or accuracy of detection declines when trackside has a barrier; Detecting device mounting condition requires higher, needs rearmounted distance when side direction is installed; Rate accuracy is low.
Computer Vision and computer graphical recognition technology combine by video encoder server technology noveldata acquisition technology, development in recent years is rapid, represents the developing direction of future transportation stream information detection field.It is as sensor with video camera, in range of video, virtual coil is set, i.e. detection zone, vehicle makes background gray levels change when entering detection zone, and produce detection signal, by the treatment and analysis of software, obtain the traffic parameters such as the volume of traffic, average speed, occupation rate, queue length.Computer vision technique can also be utilized to position vehicle, identify and follow the trail of, and the traffic behavior of detected object is analyzed and judges, finally complete the collection of various traffic flow data.Video-based vehicle detection is widely used in highway and urban road, is mainly used in the location of road conditions complexity at present, as interchange, ring road, tunnel, and the intersection etc. of urban road.Along with the improving constantly of Computer Vision and computer graphical recognition technology, the expansion of application and the reduction of hardware cost, the overall cost of video-based vehicle detection declines thereupon, and operation cost is lower the later stage in addition, and its range of application will constantly expand.But be used alone foreground detection techniques mostly in current video detection technology, make the accuracy detected be subject to the impact of circumstance complication degree very large, and the use of sorter largely solve this problem.
Summary of the invention
The invention provides a kind of video vehicle detection method merged based on multiple target tracking and cascade classifier, this method can realize vehicle detection accurately.
In order to solve the problem of vehicle detection accuracy, specific embodiment of the invention step is:
(1) sorter training, the multiple Haar-like feature through the screening of CART decision tree is trained;
(2) fresh target based on multi-scale filtering detects;
Further, the positive negative sample choosing proper ratio in step (1) carries out sorter training and refers to: by the positive sample of appropriate quantity and negative sample, from Sample Storehouse, random selecting is out, then 15 kinds of Haar-like features of positive negative sample are extracted, the feature being filtered out robust by CART decision tree carries out sorter training, obtains the cascade classifier of 20 grades.
Further, detecting based on the fresh target of multi-scale filtering in step (2) and refer to: moving object detection in video present frame is gone out, then by carrying out multi-scale filtering to targeted mass, adding the fresh target after filtering to tracker.
The invention has the advantages that and adopt the vehicle checking method that merges based on multiple target tracking and cascade classifier, the method adds sorter judgement tracing in present frame after all targets, thus is improve the degree of accuracy of detection.The algorithm complex of this method is lower in addition, can better adapt to the application of current computer vision system.
Accompanying drawing explanation
fig. 1for the implementing procedure of the embodiment of the present invention is illustrated figure;
fig. 2for positive sample instance figure;
fig. 3for negative sample example figure;
fig. 4for needing the feature mode extracted figure;
fig. 5for calculating examples of features figure;
fig. 6for the definition of RAST (x, y) figure
fig. 7for the positive and negative weights of the rectangle rotating 45 ° divide example figure
fig. 8for training classifier first order example figure;
fig. 9for testing result example figure;
Embodiment
In order to better the present invention is described, referring to accompanying drawingwith embodiment, further detailed description is done to specific embodiment of the invention.
as Fig. 1shown in, specific embodiment of the invention step is:
(1) train based on the multiple Haar-like feature of screening through CART decision tree.
First set up positive negative example base ( as Fig. 1,2shown in) description document, Postive.vec and Negtive.dat.In file, every a line stores the retrieving information of a pictures, is followed successively by image block title, image block at the starting position coordinates (left-top) of original image, the height and width of image block.
After description document has been set up, what carry out is image block haar feature extraction, feature mode as Fig. 4shown in, comprise altogether 15 kinds.Wherein the weights of black region are negative, and the weights of white portion are just.In order to improve counting yield, we use integral image to carry out the eigenwert of computed image block.Introduce the computation process of the rectangular characteristic value calculating vertical matrix type and rotate 45 ° below respectively.
The computation process of vertical eigenwert: fig. 5for the integral image of image, then the pixel value of a-quadrant (is designated as Pix a), the pixel value in B region (is designated as Pix b).
Pix A = ii 8 + ii 4 - ii 5 - ii 7 Pix B = ii 9 + ii 5 - ii 6 - ii 8 f e a t u r e = Pix A - Pix B = ( ii 8 - ii 7 ) + ( ii 6 - ii 5 ) - ( ii 5 - ii 4 ) - ( ii 9 - ii 8 ) - - - ( 1 )
Rotate the computation process of the rectangular characteristic value of 45 °: fig. 6for the definition of RSAT (x, y) figure, fig. 7for the positive and negative weights of the rectangle rotating 45 ° divide example figure.
R S A T ( x , y ) = Σ x , ≤ x , x , ≤ x - | y - y , | I ( x , , y , ) R S A T ( x , y ) = R S A T ( x - 1 , y - 1 ) + R S A T ( x - 1 , y ) + I ( x , y ) - R S A T ( x - 2 , y - 1 ) - - - ( 2 )
Be input to extracting the feature having added label in sorter and train, training process optimum configurations: nstage=20, npos=1000, nneg=3000, w=40, h=40, other parameters are all suitable for default value.Finally train 20 grades of sorters that accuracy rate is 95.4%, fig. 8for first order training process.
(2) fresh target based on multi-scale filtering detects.
Foreground detection is mainly realized by the method for background modeling, and we use GMM background modeling here.It is that new agglomerate detects that agglomerate detects core: first from foreground image, detect all agglomerates, then overlapping agglomerate is had to abandon by less agglomerate (may be caused by noise) with tracked agglomerate, and remaining agglomerate is arranged according to size order, only retain wherein several larger agglomerate (being defaulted as 10).Finally utilize multi-scale filtering Rules Filtering, in screening, only have the targeted mass returning RECT result to be only standard compliant agglomerate, real new agglomerate is saved in agglomerate row in table.Now complete the task that fresh target detects, add fresh target to tracker, carry out subsequent treatment, final testing result as Fig. 9shown in.
The present embodiment adopts C++ programming realization in the computing machine being configured to 3.60GHzIntel (R) Xeon (R) E5-1620CPU and 8G internal memory, the image of process 21 frame 640*480 per second and Detection accuracy reaches 92.6%.

Claims (3)

1., based on the vehicle checking method that multiple target tracking and cascade classifier merge, it is characterized in that the concrete steps of the method are:
Step (1), sorter is trained, and the multiple Haar-like feature through the screening of CART decision tree is trained;
Step (2), the fresh target based on multi-scale filtering detects.
2. the vehicle checking method merged based on multiple target tracking and cascade classifier according to right 1, it is characterized in that sorter training in step (1), train based on the multiple Haar-like feature through the screening of CART decision tree, concrete steps are as follows:
S2.1: set up positive and negative pattern representation file.
S2.2: the 15 kinds of haar-like features extracting sample according to formula (1) (2), and carry out sorter training.
Pix A = ii 8 + ii 4 - ii 5 - ii 7 Pix B = ii 9 + ii 5 - ii 6 - ii 8 f e a t u r e = Pix A - Pix B = ( ii 8 - ii 7 ) + ( ii 6 - ii 5 ) - ( ii 5 - ii 4 ) - ( ii 9 - ii 8 ) - - - ( 1 )
Pix in formula aand Pix bbe respectively the pixel value of region A and region B, ii mrepresent the value on integral image block summit, feature is eigenwert.
The pixel that RSAT (x, y) is the 45 ° of regions in region, 45 °, point (x, the y) upper left corner and the lower left corner and, calculate the rectangular characteristic value of rotation 45 ° and calculate the difference being positioned at the capable rectangle RSAT (x, y) of cross exactly.
3. the vehicle checking method merged based on multiple target tracking and cascade classifier according to right 1, it is characterized in that the fresh target based on multi-scale filtering in step (3) detects, concrete steps are as follows:
S3.1: set up background model and carry out foreground detection.
S3.2: carry out new agglomerate detection according to the prospect detected.
S3.3: according to the foreground image in S3.1 and S3.2, carries out multiple dimensioned window filtering by prospect agglomerate, and window smallest dimension is that agglomerate is wide high by 1/2, and be agglomerate size to the maximum, the change of scale of window is 1.1.
S3.4: the agglomerate by filtering is demarcated position fresh target and adds tracker to.
CN201510633007.1A 2015-09-29 2015-09-29 Vehicle detecting method based on multi-target tracking and cascade classifier combination Pending CN105205500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510633007.1A CN105205500A (en) 2015-09-29 2015-09-29 Vehicle detecting method based on multi-target tracking and cascade classifier combination

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510633007.1A CN105205500A (en) 2015-09-29 2015-09-29 Vehicle detecting method based on multi-target tracking and cascade classifier combination

Publications (1)

Publication Number Publication Date
CN105205500A true CN105205500A (en) 2015-12-30

Family

ID=54953172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510633007.1A Pending CN105205500A (en) 2015-09-29 2015-09-29 Vehicle detecting method based on multi-target tracking and cascade classifier combination

Country Status (1)

Country Link
CN (1) CN105205500A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106295636A (en) * 2016-07-21 2017-01-04 重庆大学 Passageway for fire apparatus based on multiple features fusion cascade classifier vehicle checking method
CN109697393A (en) * 2017-10-23 2019-04-30 北京京东尚科信息技术有限公司 Person tracking method, device, electronic device and computer-readable medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104318588A (en) * 2014-11-04 2015-01-28 北京邮电大学 Multi-video-camera target tracking method based on position perception and distinguish appearance model

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104318588A (en) * 2014-11-04 2015-01-28 北京邮电大学 Multi-video-camera target tracking method based on position perception and distinguish appearance model

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
RAINER LIENHART 等: "An Extended Set of Haar-like Features for Rapid Object Detection", 《PROCEEDINGS OF INTERNATIONAL CONFERENCE ON IMAGE PROCESSING》 *
RN DASCHOUDHARY 等: "Real-time Face Detection and Tracking Using Haar Classifier on SoC", 《PROCEEDINGS OF 12TH SARC-IRF INTERNATIONAL CONFERENCE》 *
杨静伟: "基于粒子滤波的行人跟踪", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106295636A (en) * 2016-07-21 2017-01-04 重庆大学 Passageway for fire apparatus based on multiple features fusion cascade classifier vehicle checking method
CN109697393A (en) * 2017-10-23 2019-04-30 北京京东尚科信息技术有限公司 Person tracking method, device, electronic device and computer-readable medium
US11270126B2 (en) 2017-10-23 2022-03-08 Beijing Jingdong Shangke Information Technology Co., Ltd. Person tracking method, device, electronic device, and computer readable medium

Similar Documents

Publication Publication Date Title
CN102768804B (en) Video-based traffic information acquisition method
CN103116987B (en) Traffic flow statistic and violation detection method based on surveillance video processing
CN102819952B (en) Method for detecting illegal lane change of vehicle based on video detection technique
CN101916383B (en) Vehicle detecting, tracking and identifying system based on multi-camera
CN110738857B (en) Vehicle violation evidence obtaining method, device and equipment
Yaghoobi Ershadi et al. Robust vehicle detection in different weather conditions: Using MIPM
CN111597905B (en) Highway tunnel parking detection method based on video technology
CN110619279A (en) Road traffic sign instance segmentation method based on tracking
CN105261034A (en) Method and device for calculating traffic flow on highway
Liu et al. Extending the detection range for low-channel roadside LiDAR by static background construction
CN114170580A (en) Highway-oriented abnormal event detection method
Wang et al. Lane detection based on two-stage noise features filtering and clustering
Al Bayati et al. Real-Time Vehicle Detection for Surveillance of River Dredging Areas Using Convolutional Neural Networks
Wu et al. Vehicle Classification and Counting System Using YOLO Object Detection Technology.
CN105205500A (en) Vehicle detecting method based on multi-target tracking and cascade classifier combination
Dinh et al. Development of a tracking-based system for automated traffic data collection for roundabouts
Ashraf et al. HVD-net: a hybrid vehicle detection network for vision-based vehicle tracking and speed estimation
CN110610118A (en) Traffic parameter acquisition method and device
Tursun et al. A video based real-time vehicle counting system using optimized virtual loop method
CN105069407B (en) A kind of magnitude of traffic flow acquisition methods based on video
CN111627224A (en) Vehicle speed abnormality detection method, device, equipment and storage medium
CN109063675B (en) Traffic density calculation method, system, terminal and computer readable storage medium
Ghosh A modified YOLO model for on-road vehicle detection in varying weather conditions
Kahaki et al. Incident and traffic-bottleneck detection algorithm in high-resolution remote sensing imagery
Bi et al. Real-time traffic flow statistics based on dual-granularity classification

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151230

WD01 Invention patent application deemed withdrawn after publication