龙源期刊网
http://www.qikan.com.cn
基于OpenCV的运动目标跟踪及其实现
作者:李振伟
陈
翀
赵
有
来源:《现代电子技术》
2008
年第
20
期
摘
要:
CAMSHIFT
算法是一种基于颜色直方图的目标跟踪算法。在视频跟踪过程中,
CAMSHIFT
算法利用选定目标的颜色直方图模型得到每帧图像的颜色投影图,并根据上一帧
跟踪的结果自适应调整搜索窗口的位置和大小,得到当前帧中目标的尺寸和质心位置。在介绍
Intel
公司的开源
OpenCV
计算机视觉库的基础上,采用
CAMSHIFT
跟踪算法,实现运动目标
跟踪,解决了跟踪目标发生存在旋转或部分遮挡等复杂情况下的跟踪难题。实验结果表明该算
法的有效性、优越性和可行性。
关键词:目标跟踪;
CAMSHIFT
算法;
OpenCV
;颜色直方图
中图分类号:
TP391
文献标识码:
B
文章编号:
1004373X(2008)2012803
Moving Object Tracking Method and Implement Based on OpenCV
LI Zhenwei1,2,CHEN Chong1,2,ZHAO You1
(1.Changchun Observatory,National Astronomical Observatories,Chinese Academy of
Sciences,Changchun,130117,China;
2.Graduate School,Chinese Academy of Sciences,Beijing,100049,China)
Abstract
:
CAMSHIFT is an object tracking algorithm based onthe color histogram.In the
process of object tracking,CAMSHIFT operates on a color back-projection image produced from
object histogram model in current frame and finds the location and size of the current frame by
adaptively adjusting the size and the location of the searching windows according to the tracking
results of the previous frame in the video.On the basis of introducing OpenCV(an Intel open source
computer vision library),through CAMSHIFT algorithm,the paper realizes moving object tracking and
resolves some problems including distractor and occlusion by other objects.Experimental results show
good perf
o
rmances,superiority and feasibility of the algorithm.
Keywords
:
object tracking;CAMSHIFT algorithm;OpenCV;color histogram
目标跟踪是计算机视觉的一个重要分支,日益广泛应用于科学技术、国防安全、航空、医
药卫生以及国民经济等领域。实现目标跟踪的关键在于完整地分割目标、合理提取特征和准确
地识别目标,同时,要考虑算法实现的时间,以保证实时性。当视频图像中被跟踪目标发生姿