APP下载

基于FCM聚类和模板匹配的视频马赛克检测方法

2012-04-16梁志敏

软件 2012年2期

梁志敏

摘 要:马赛克是数字电视节目中常见的一种视频缺陷现象,会造成视频质量的下降,因此在视频序列中有效地定位并修复马赛克块变得越来越重要。本文提出一种基于FCM模糊聚类和模板匹配的方法检测视频中的马赛克块,首先,使用canny边缘检测方法检测图像的边缘。其次,使用FCM聚类方法对像素进行分类。最后,利用模板匹配的方法检测马赛克块。基于OpenCV库函数进行算法实现,实验结果验证了所提算法的有效性。

关键词:视频缺陷;马赛克检测;FCM聚类;模板匹配

中图分类号: TP391.41文献标识码:aDoI: 10.3969/j.issn.1003-6970.2012.02.044

Video Mosaic Block Detection Based on FCM and Template Matching

LIaNG Zhi-min(Beijing Key Lab of Intelligent Telecomm Software and Multimedia, Beijing University of Posts and Telecommunication, Beijing 100876)

【Abstract】Mosaic is common in digital TV of a video defects phenomenon, can cause video quality degrade, so positioning and restoring Mosaic block effectively in video sequences become more and more important. This paper presents a fuzzy clustering based on FCM and template matching method of detecting video Mosaic pieces, first of all, use the canny edge detection method detect the edge of image. Secondly, use of FCM clustering method to the pixel classification. Finally, use the template matching method detect Mosaic block. Based on the OpenCV library function ,achieve the relevant algorithm, experiment results verify the effectiveness of the proposed algorithm.

【Key words】degrade video;mosaic detecting;fCM clustering;template matching

0 引 言

电视信号数字化以后,往往要经过多个编码和解码的过程,在网络传输过程中会因为网络质量或受到各种干扰而误码,导致视频中出现雪花、拉条、黑场、静帧和斑点等质量下降问题[1]。因此,随着广电领域非线性编辑系统的快速发展,对视频图像的质量要求越来越高,采用一定的手段对这些电视节目中的视频质量进行检测和修复保存是非常有必要的[2]。要想修复这些质量有缺陷的视频图像,首要的问题就是如何检测存在的各种视频质量缺陷问题。本文讨论的是马赛克的检测。

在电视节目中常常会看到或大或小的瑕疵块,这些块大小规矩分布,色彩、灰度单一。这就是马赛克块。产生马赛克块的原因有两方面,一是数字信号传输过程由于网络质量或者受到干扰而产生误码,从而造成马赛克块;二是电视节目中有时候为了遮挡重要部位,避免重要信息暴露,也会人为打上马赛克。……

登录APP查看全文