CN104281837B - With reference to Kalman filtering and the adjacent widened pedestrian tracting methods of interframe ROI - Google Patents
With reference to Kalman filtering and the adjacent widened pedestrian tracting methods of interframe ROI Download PDFInfo
- Publication number
- CN104281837B CN104281837B CN201410501116.3A CN201410501116A CN104281837B CN 104281837 B CN104281837 B CN 104281837B CN 201410501116 A CN201410501116 A CN 201410501116A CN 104281837 B CN104281837 B CN 104281837B
- Authority
- CN
- China
- Prior art keywords
- pedestrian
- image
- detection
- tracking
- detection result
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000001914 filtration Methods 0.000 title claims abstract description 10
- 238000001514 detection method Methods 0.000 claims description 42
- 238000002546 full scan Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 2
- 238000012545 processing Methods 0.000 description 4
- 238000003909 pattern recognition Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000005021 gait Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
- G06T7/277—Analysis of motion involving stochastic approaches, e.g. using Kalman filters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Traffic Control Systems (AREA)
Abstract
Description
技术领域technical field
本发明属于视频图像处理及模式识别技术领域,尤其涉及一种将卡尔曼滤波与相邻帧间行人ROI扩大方法结合进行行人跟踪方法。The invention belongs to the technical field of video image processing and pattern recognition, and in particular relates to a method for tracking pedestrians by combining Kalman filtering with a pedestrian ROI expansion method between adjacent frames.
背景技术Background technique
行人跟踪是当前机器视觉领域中非刚性运动目标跟踪的热点问题,作为计算机视觉领域的前沿科学,涉及到图像处理、模式识别和人工智能等学科知识,是通过图像序列或者视频监控中的行人目标进行检测、提取、识别和跟踪,获得行人的位置、速度、加速度以及运动轨迹等参数,是实现对行人行为分析及获得更深层次行为理解的重要步骤。Pedestrian tracking is a hot issue in non-rigid moving target tracking in the field of machine vision. As a frontier science in the field of computer vision, it involves image processing, pattern recognition and artificial intelligence. It is a pedestrian target in image sequences or video surveillance. Detecting, extracting, identifying, and tracking, and obtaining parameters such as the position, velocity, acceleration, and trajectory of pedestrians are important steps to analyze pedestrian behavior and gain a deeper understanding of behavior.
这一问题分为行人检测和行人跟踪两大部分,行人检测属于运动目标检测,目的是从序列图像中将变化的区域(行人)从背景图像中提取出来。行人跟踪则根据跟踪方法的不同,将行人跟踪分为四类:基于模型的跟踪、基于区域的跟踪、基于主动轮廓的跟踪和基于特征的跟踪。由于行人的非刚性特征及行人活动的灵活自主性,具体应用中的一个困难是遮挡问题。针对遮挡问题,以上行人跟踪方法处理效果不理想。This problem is divided into two parts: pedestrian detection and pedestrian tracking. Pedestrian detection belongs to moving target detection. The purpose is to extract the changing area (pedestrian) from the background image from the sequence image. According to different tracking methods, pedestrian tracking is divided into four categories: model-based tracking, area-based tracking, active contour-based tracking and feature-based tracking. Due to the non-rigid characteristics of pedestrians and the flexibility and autonomy of pedestrian activities, one difficulty in specific applications is the occlusion problem. For the occlusion problem, the above pedestrian tracking methods are not ideal.
发明内容Contents of the invention
为了解决现有技术中存在的问题,本发明提出了一种将卡尔曼滤波与相邻帧间行人感兴趣区域(ROI)扩大方法相结合进行行人跟踪的方法来提高行人跟踪准确率。In order to solve the problems existing in the prior art, the present invention proposes a pedestrian tracking method that combines Kalman filtering with a pedestrian region of interest (ROI) expansion method between adjacent frames to improve pedestrian tracking accuracy.
为了达到上述目的,本发明采取了以下技术方案:In order to achieve the above object, the present invention has taken the following technical solutions:
一种结合卡尔曼滤波和相邻帧间行人ROI扩大的行人跟踪方法,其特征在于,所述方法包括以下步骤:A pedestrian tracking method combining Kalman filtering and pedestrian ROI expansion between adjacent frames, characterized in that the method comprises the following steps:
步骤A:前一帧图像通过单帧图像方法进行检测,提取检测出的矩形框的坐标并保存,根据前一帧图像检测的结果对当前帧图像的行人进行跟踪和识别,输出检测结果;Step A: The previous frame image is detected by the single frame image method, the coordinates of the detected rectangular frame are extracted and saved, and the pedestrians in the current frame image are tracked and identified according to the detection result of the previous frame image, and the detection result is output;
步骤B:根据步骤A的检测结果,判断是否存在检测目标,若不存在检测目标,则执行步骤C,否则,执行步骤D;Step B: According to the detection result of step A, judge whether there is a detection target, if there is no detection target, execute step C, otherwise, execute step D;
步骤C:根据历史跟踪模块中前几帧的记录结果,采用卡尔曼滤波对当前帧图像进行预测,获得预测结果,以解决行人被短时间遮挡的跟踪问题,然后执行步骤D;Step C: According to the recording results of the previous frames in the history tracking module, use Kalman filter to predict the current frame image, and obtain the prediction result to solve the tracking problem of pedestrians being blocked for a short time, and then perform step D;
步骤D:根据检测结果/预测结果标出行人位置,将所述行人位置保存在历史跟踪模块中并输出行人位置。Step D: mark the position of the pedestrian according to the detection result/prediction result, save the position of the pedestrian in the history tracking module and output the position of the pedestrian.
进一步地,所述步骤A包括以下步骤:Further, said step A includes the following steps:
步骤A1:采集车辆前方的图像并对图像进行扫描窗口匹配检测,提取检测结果并保存;Step A1: Collect the image in front of the vehicle and perform scan window matching detection on the image, extract and save the detection result;
步骤A2:通过改变矩形框横纵坐标值使其放大一定的比例作为感兴趣区域,作为下一帧的检测区域进行检测并且根据检测区域内扫描窗口的下边界区域可以判断窗口是否会增大。Step A2: Change the horizontal and vertical coordinates of the rectangular frame to enlarge it to a certain ratio as the region of interest, detect it as the detection region of the next frame, and judge whether the window will increase according to the lower boundary area of the scanning window in the detection region.
进一步地,在所述步骤A2之后还包括步骤A3:进行相邻帧间检测的过程中根据行人更新的频率判断是否需要全扫描图像,如果需要则重新采集车辆前方图像,如果不需要则继续提取步骤A1的检测结果作为下一帧的感兴趣区域。Further, after said step A2, step A3 is also included: in the process of detecting between adjacent frames, it is judged whether a full-scan image is needed according to the frequency of pedestrian update, if necessary, the image in front of the vehicle is re-acquired, and if not, continue to extract The detection result of step A1 is used as the ROI of the next frame.
本发明的有益效果是:本发明克服了现有技术中行人跟踪算法的缺点,非常适合于对行人的实时跟踪,不但利用相邻帧间的图片信息提高计算速度,同时将卡尔曼滤波方法结合进来,弥补帧处理无法跟踪行人被短时间遮挡问题的不足。实验结果表明,本发明的方法可以很好地在行人被遮挡时候,利用之前的跟踪位置信息来预测当前行人的位置,提高行人跟踪的准确率。The beneficial effects of the present invention are: the present invention overcomes the shortcomings of pedestrian tracking algorithms in the prior art, and is very suitable for real-time tracking of pedestrians. It not only uses the image information between adjacent frames to improve the calculation speed, but also combines the Kalman filter Come in to make up for the lack of frame processing that cannot track pedestrians being blocked for a short time. Experimental results show that the method of the present invention can use the previous tracking position information to predict the current position of the pedestrian when the pedestrian is blocked, and improve the accuracy of pedestrian tracking.
附图说明Description of drawings
图1是本发明的方法所采用的相邻帧间ROI扩大方法的流程图;Fig. 1 is the flowchart of the ROI expansion method between adjacent frames adopted by the method of the present invention;
图2是本发明的结合卡尔曼滤波和相邻帧间ROI扩大的行人跟踪方法的流程图。FIG. 2 is a flow chart of the pedestrian tracking method combined with Kalman filtering and ROI expansion between adjacent frames of the present invention.
具体实施方式Detailed ways
下面结合附图说明及具体实施方式对本发明进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
单帧图像中的运动区域目标进行检测与识别,根据提取出的特征确认目标是否为行人,以确定图像序列中是否有行人目标,然后根据检测结果获知行人坐标位置。一般情况下,行人目标被确认后,并不会马上消失,其在序列图像中是连续存在的。即行人的位置有一定的连续性,其特征也有很大的相关性。为此,对于多帧图像本发明采用建立感兴趣区域(ROI)的方法,在感兴趣区域中利用单帧图像检测方法寻找行人,这样能有效地减少跟踪时间。考虑到行人在行走过程中,高度不会发生很大的变化,但是由于行人行走步态的变化,会使得行人的宽度变化比较明显。这样就可以在前一帧识别的结果中,在获得行人矩形框的高度方向和宽度方向分别扩大一定区域作为感兴趣区域,再在该区域中精确地定位出当前图像中的行人。相邻帧间行人检测过程不但对单帧图像的检测速度进行了大幅度的提高,而且对相邻帧间的图像进行了优化。The target in the moving area in the single frame image is detected and recognized, and whether the target is a pedestrian is confirmed according to the extracted features to determine whether there is a pedestrian target in the image sequence, and then the coordinate position of the pedestrian is obtained according to the detection result. In general, after the pedestrian target is confirmed, it will not disappear immediately, and it exists continuously in the sequence images. That is, the pedestrian's position has a certain continuity, and its characteristics also have a great correlation. For this reason, the present invention adopts the method of establishing a region of interest (ROI) for multi-frame images, and uses a single-frame image detection method to find pedestrians in the region of interest, which can effectively reduce tracking time. Considering that the height of pedestrians will not change greatly during walking, but the width of pedestrians will change significantly due to changes in pedestrian walking gait. In this way, in the recognition result of the previous frame, a certain area can be expanded in the height direction and width direction of the pedestrian rectangular frame respectively as the area of interest, and then the pedestrian in the current image can be accurately located in this area. The process of pedestrian detection between adjacent frames not only greatly improves the detection speed of single frame images, but also optimizes the images between adjacent frames.
附图1是相邻帧间行人检测过程的流程图。首先,采集车辆前方的图像并对图像进行扫描窗口匹配检测,提取检测结果并保存;然后通过改变矩形框横纵坐标值使其放大一定的比例作为感兴趣区域,把感兴趣区域作为下一帧的检测区域进行检测并且根据检测区域内扫描窗口的下边界区域可以判断窗口是否会增大。在进行相邻帧间检测的过程中可根据行人更新的频率判断是否需要全扫描图像,如果需要则采集车辆前方图像,如果不需要则继续提取检测结果作为下一帧的感兴趣区域。Accompanying drawing 1 is the flowchart of pedestrian detection process between adjacent frames. First, collect the image in front of the vehicle and perform scan window matching detection on the image, extract the detection result and save it; then change the horizontal and vertical coordinates of the rectangular box to enlarge it to a certain ratio as the region of interest, and use the region of interest as the next frame The detection area is detected and whether the window will increase can be judged according to the lower boundary area of the scanning window in the detection area. In the process of detection between adjacent frames, it can be judged according to the update frequency of pedestrians whether a full-scan image is needed, if necessary, the image in front of the vehicle will be collected, and if not, the detection result will continue to be extracted as the ROI of the next frame.
附图2是将卡尔曼滤波与相邻帧间行人ROI扩大方法相结合进行行人跟踪的流程图。卡尔曼滤波的一个典型实例是从一组有限的,包含噪声的,通过对物体位置的观察序列(可能有偏差)预测出物体的位置的坐标及速度。本发明利用卡尔曼滤波处理行人被遮挡时候的跟踪问题,将卡尔曼滤波与扩大扫描窗口作为感兴趣区域的方法相结合,以达到更准确地对行人目标跟踪的目的,并缩短检测时间。本发明的方法将相邻帧间的图片信息紧密地联系了起来,并大大地缩短了系统处理的复杂度。Accompanying drawing 2 is the flow chart that combines Kalman filtering and the pedestrian ROI expansion method between adjacent frames for pedestrian tracking. A typical example of Kalman filtering is to predict the coordinates and velocity of the object's position from a limited set of noise-containing observation sequences (possibly biased) about the object's position. The present invention uses Kalman filter to deal with the tracking problem when pedestrians are blocked, and combines Kalman filter with the method of enlarging the scanning window as the region of interest to achieve more accurate tracking of pedestrian targets and shorten the detection time. The method of the invention closely links the picture information between adjacent frames, and greatly reduces the complexity of system processing.
首先由行人检测模块给出上一帧图像所检测出的目标位置Rn-1,将原扫描矩形框扩大一定倍数作为感兴趣区域,并对该区域进行检测,得出检测结果An,再判断该检测结果中是否有先前上一帧的检测目标,若存在目标(e=1),则在当前帧图片中标出行人位置并保存于历史跟踪模块以备下一帧的检测,即Rn=An;若不存在目标(e=0),本发明提出利用卡尔曼滤波防遮挡预测的方法,根据历史跟踪模块中前几帧的记录结果,采用卡尔曼滤波对当前帧图像进行预测,并保存于历史跟踪模块,即Rn=Kn。其中,Rn为历史跟踪模块中的记录,An为相邻帧间ROI的检测结果,Kn为卡尔曼滤波防遮挡的预测结果。First, the pedestrian detection module gives the target position Rn-1 detected by the previous frame image, expands the original scanning rectangular frame by a certain multiple as the region of interest, and detects the region to obtain the detection result An, and then judges the Whether there is a detection target in the previous frame in the detection result, if there is a target (e=1), mark the pedestrian position in the current frame picture and save it in the history tracking module for the detection of the next frame, that is, Rn=An; If there is no target (e=0), the present invention proposes a method for anti-occlusion prediction using Kalman filter, according to the record results of the previous frames in the history tracking module, using Kalman filter to predict the current frame image, and save it in the history Tracking module, ie Rn=Kn. Among them, Rn is the record in the history tracking module, An is the detection result of ROI between adjacent frames, and Kn is the prediction result of Kalman filter anti-occlusion.
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can be made, which should be regarded as belonging to the protection scope of the present invention.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410501116.3A CN104281837B (en) | 2014-09-26 | 2014-09-26 | With reference to Kalman filtering and the adjacent widened pedestrian tracting methods of interframe ROI |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410501116.3A CN104281837B (en) | 2014-09-26 | 2014-09-26 | With reference to Kalman filtering and the adjacent widened pedestrian tracting methods of interframe ROI |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104281837A CN104281837A (en) | 2015-01-14 |
CN104281837B true CN104281837B (en) | 2018-05-25 |
Family
ID=52256697
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410501116.3A Expired - Fee Related CN104281837B (en) | 2014-09-26 | 2014-09-26 | With reference to Kalman filtering and the adjacent widened pedestrian tracting methods of interframe ROI |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104281837B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107316317A (en) * | 2017-05-23 | 2017-11-03 | 深圳市深网视界科技有限公司 | A kind of pedestrian's multi-object tracking method and device |
CN109902543A (en) * | 2017-12-11 | 2019-06-18 | 北京京东尚科信息技术有限公司 | Target trajectory estimation method, device and Target Tracking System |
CN108182393A (en) * | 2017-12-22 | 2018-06-19 | 上海信耀电子有限公司 | A kind of automobile and its front truck tracking and system of application |
CN110675426B (en) * | 2018-07-02 | 2022-11-22 | 百度在线网络技术(北京)有限公司 | Human body tracking method, device, equipment and storage medium |
CN110084146B (en) * | 2019-04-08 | 2021-06-04 | 清华大学 | Pedestrian detection method and device based on shielding perception self-supervision learning |
CN110287907B (en) * | 2019-06-28 | 2020-11-03 | 北京海益同展信息科技有限公司 | Object detection method and device |
CN110555862A (en) * | 2019-08-23 | 2019-12-10 | 北京数码视讯技术有限公司 | Target tracking method, device, electronic equipment and computer-readable storage medium |
CN111914690B (en) * | 2020-07-15 | 2023-11-10 | 西安米克斯智能技术有限公司 | Target object medium-long-term tracking method in video identification |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101794385A (en) * | 2010-03-23 | 2010-08-04 | 上海交通大学 | Multi-angle multi-target fast human face tracking method used in video sequence |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6950123B2 (en) * | 2002-03-22 | 2005-09-27 | Intel Corporation | Method for simultaneous visual tracking of multiple bodies in a closed structured environment |
-
2014
- 2014-09-26 CN CN201410501116.3A patent/CN104281837B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101794385A (en) * | 2010-03-23 | 2010-08-04 | 上海交通大学 | Multi-angle multi-target fast human face tracking method used in video sequence |
Non-Patent Citations (1)
Title |
---|
遮挡情况下基于卡尔曼滤波的运动目标跟踪;孙尚龙等;《电子测量技术》;20110531;第34卷(第5期);第8-11页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104281837A (en) | 2015-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104281837B (en) | With reference to Kalman filtering and the adjacent widened pedestrian tracting methods of interframe ROI | |
JP6942488B2 (en) | Image processing equipment, image processing system, image processing method, and program | |
KR101870902B1 (en) | Image processing apparatus and image processing method | |
Chougule et al. | Reliable multilane detection and classification by utilizing cnn as a regression network | |
CN103164858B (en) | Adhesion crowd based on super-pixel and graph model is split and tracking | |
CN103824070B (en) | A kind of rapid pedestrian detection method based on computer vision | |
CN102999920B (en) | Target tracking method based on nearest neighbor classifier and mean shift | |
CN101393609B (en) | Target detection tracking method and device | |
CN104008371A (en) | Regional suspicious target tracking and recognizing method based on multiple cameras | |
JP5754990B2 (en) | Information processing apparatus, information processing method, and program | |
KR101635896B1 (en) | Device and method for tracking people based depth information | |
CN105512618B (en) | Video tracing method | |
CN103325112A (en) | Quick detecting method for moving objects in dynamic scene | |
CN104992453A (en) | Target tracking method under complicated background based on extreme learning machine | |
CN102073851A (en) | Method and system for automatically identifying urban traffic accident | |
CN104200492B (en) | Video object automatic detection tracking of taking photo by plane based on profile constraints | |
CN104835147A (en) | Method for detecting crowded people flow in real time based on three-dimensional depth map data | |
KR101737430B1 (en) | A method of detecting objects in the image with moving background | |
CN104537688A (en) | Moving object detecting method based on background subtraction and HOG features | |
CN103985127A (en) | Detecting method and device for weak and small target with intensive fixed star background | |
CN104298964A (en) | Human body behavior action fast recognition method and device | |
CN101719280B (en) | Infrared dim and small target detection method | |
Ke et al. | Real-time 3D human pose estimation from monocular view with applications to event detection and video gaming | |
KR102434397B1 (en) | Real time multi-object tracking device and method by using global motion | |
CN103077536B (en) | Space-time mutative scale moving target detecting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180525 Termination date: 20190926 |
|
CF01 | Termination of patent right due to non-payment of annual fee |