改进MeanShift算法在智能监控视频中的应用研究
Research on Application of Improved MeanShift Algorithm in Intelligent Surveillance Video
DOI: 10.12677/csa.2026.167245, PDF,    科研立项经费支持
作者: 阳小燕*, 李忠林, 贾玉婷, 高 瑞:广州软件学院电子信息与控制工程学院,广东 广州
关键词: 智能视频监控MeanShift运动目标跟踪特征匹配误差抑制Intelligent Video Surveillance MeanShift Moving Target Tracking Feature Matching Error Suppression
摘要: 智能视频监控是公共安全、交通管理、园区安防等领域的关键技术,运动目标实时跟踪是其核心环节。传统MeanShift算法具有计算简单、实时性强、抗部分遮挡等优势,但在复杂监控场景下,面对目标快速运动、尺度变化、背景干扰及光照波动,易出现跟踪漂移、目标丢失和误差累积等问题,跟踪鲁棒性不足。为此,本文提出一种特征匹配辅助初始化的改进MeanShift跟踪算法。该算法通过特征匹配快速定位目标运动区域,经形态学处理获取目标形心并动态生成迭代初始位置,再结合加权核直方图建模与Bhattacharyya相似度度量实现目标精准跟踪。实验结果表明,改进算法有效抑制误差累积,显著提升快速运动目标跟踪稳定性,单帧耗时稳定,可满足智能视频监控实时、鲁棒的跟踪需求。
Abstract: Intelligent video surveillance is a key technology in public security, traffic management and community security, where real-time moving target tracking serves as a core component. The traditional MeanShift algorithm has the advantages of simple calculation, strong real-time performance and partial occlusion resistance. However, in complex surveillance scenarios, it suffers from tracking drift, target loss and error accumulation under fast target motion, scale variation, background interference and illumination fluctuation, resulting in insufficient tracking robustness. Therefore, an improved MeanShift tracking algorithm with feature matching-assisted initialization is proposed in this paper. The algorithm quickly locates the target motion region via feature matching, obtains the target centroid through morphological processing to dynamically generate the iterative initial position, and realizes precise target tracking combined with weighted kernel histogram modeling and Bhattacharyya similarity measurement. Experimental results show that the improved algorithm effectively suppresses error accumulation and significantly enhances the tracking stability of fast-moving targets with stable single-frame time, meeting the real-time and robust tracking requirements of intelligent video surveillance.
文章引用:阳小燕, 李忠林, 贾玉婷, 高瑞. 改进MeanShift算法在智能监控视频中的应用研究[J]. 计算机科学与应用, 2026, 16(7): 102-112. https://doi.org/10.12677/csa.2026.167245

参考文献

[1] Horn, B.K.P. and Schunck, B.G. (1981) Determining Optical Flow. Artificial Intelligence, 17, 185-203. [Google Scholar] [CrossRef
[2] Isard, M. and Blake, A. (1998) Condensation—Conditional Density Propagation for Visual Tracking. International Journal of Computer Vision, 29, 5-28. [Google Scholar] [CrossRef
[3] Henriques, J.F., Caseiro, R., Martins, P. and Batista, J. (2015) High-Speed Tracking with Kernelized Correlation Filters. IEEE Transactions on Pattern Analysis and Machine Intelligence, 37, 583-596. [Google Scholar] [CrossRef] [PubMed]
[4] Wang, Q., Zhang, L., Bertinetto, L., Hu, W. and Torr, P.H.S. (2019) Fast Online Object Tracking and Segmentation: A Unifying Approach. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, 15-20 June 2019, 1328-1338. [Google Scholar] [CrossRef
[5] Lin, L., Fan, H., Zhang, Z., et al. (2021) SwinTrack: A Simple and Strong Baseline for Transformer Tracking. arXiv: 2112.00995.
[6] Xu, Y., Wang, Z., Li, Z., Yuan, Y. and Yu, G. (2020) SiamFC++: Towards Robust and Accurate Visual Tracking with Target Estimation Guidelines. Proceedings of the AAAI Conference on Artificial Intelligence, 34, 12549-12556. [Google Scholar] [CrossRef
[7] 程浩. MeanShift结合粒子滤波在游泳运动目标检测中的自动跟踪研究[J]. 自动化与仪器仪表, 2023, 288(10): 31-35.
[8] 骆焦煌, 宋长龙. 基于改进CNN算法的视觉图像目标跟踪研究[J]. 吉林大学学报(信息科学版), 2023, 41(1): 165-173.
[9] 王震洲, 张森, 宁超, 等. 基于改进SURF的图像特征点匹配算法[J]. 河北工业科技, 2024, 41(6): 418-425.
[10] 顾靓雨, 陈曦, 李华. 多特征融合与Kalman滤波的CAMShift跟踪算法[J]. 计算机仿真, 2024, 41(3): 200-205.
[11] Kumar, C. and Singh, S. (2024) Security Standards for Real Time Video Surveillance and Moving Object Tracking Challenges, Limitations, and Future: A Case Study. Multimedia Tools and Applications, 83, 30113-30144. [Google Scholar] [CrossRef
[12] Pei, L.L., Zhang, H. and Yang, B. (2021) Improved Camshift Object Tracking Algorithm in Occluded Scenes Based on AKAZE and Kalman. Multimedia Tools and Applications, 81, 2145-2159. [Google Scholar] [CrossRef] [PubMed]
[13] Choi, S., Kang, D. and Cho, M. (2024) Contrastive Mean-Shift Learning for Generalized Category Discovery. 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, 16-22 June 2024, 23094-23104. [Google Scholar] [CrossRef
[14] 严飞, 徐龙, 等. 改进算法实时目标跟踪实现[J]. 计算机工程与设计, 2025, 46(1): 315-321.