针对传统帧间差分算法存在漏检、空洞和虚假目标等问题,提出一种改进的帧间差分算法。对几种常见色彩空间的运动目标检测效果进行实验对比分析,选取检测效果优良的色彩通道分量构建运动目标检测的混合色彩空间CbVb*。为充分利用帧间信息的相关性,根据CbVb*空间的场景像素变化特性,提出七帧帧间差分算法以获取运动目标的时域帧间差分;采用自适应阈值的Canny算子得到梯度域的运动目标边缘,将时域帧间差分与梯度域目标边缘进行融合,并对融合信息进行腐蚀和膨胀处理得到最终的检测结果。实验结果表明,改进的算法可以更准确地检测出运动目标,并具有较好的鲁棒性、适应性和实时性。
Aiming at the problem of leak detection, hollows and false targets in the traditional frame difference algorithm, an improved frame difference algorithm is presented. The effect of moving target detection is experimented and analyzed in several common color spaces, selecting excellent color channels to build hybrid color space CbVb* for moving target detection. In order to make full use of the correlation information among frames, seven frame difference algorithm is presented to calculate moving target frame difference in time domain according to the pixel changing characteristics of CbVb*, and edges of moving target in gradient domain is obtained by using Canny operator with adaptive threshold. Then, frame difference in time domain combines with target edges in gradient domain, and the combined information is carried on corrosion and expansion processing to get the final detection results. The experimental results show that the improved algorithm can more accurately detect moving targets, and have good robustness, adaptability and real-time performance