计算机工程与应用 ›› 2010, Vol. 46 ›› Issue (32): 144-146.DOI: 10.3778/j.issn.1002-8331.2010.32.040

• 图形、图像、模式识别 • 上一篇    下一篇

基于OpenCV的数字视频缺陷检测快速算法

孙水发1,2,雷帮军2,刘军清1,2,郑 胜2   

  1. 1.三峡大学 计算机与信息学院,湖北 宜昌 443002
    2.三峡大学 智能视觉与图像信息研究所,湖北 宜昌 443002
  • 收稿日期:2010-01-29 修回日期:2010-03-26 出版日期:2010-11-11 发布日期:2010-11-11
  • 通讯作者: 孙水发

Efficient digital video defect detection based on OpenCV

SUN Shui-fa1,2,LEI Bang-jun2,LIU Jun-qing1,2,ZHENG Sheng2   

  1. 1.College of Computer and Information Technology,China Three Gorges University,Yichang,Hubei 443002,China
    2.Institute of Intelligent Vision and Image Information,China Three Gorges University,Yichang,Hubei 443002,China
  • Received:2010-01-29 Revised:2010-03-26 Online:2010-11-11 Published:2010-11-11
  • Contact: SUN Shui-fa

摘要: 随着视频应用范围的扩展,在视频中定位出视频缺陷变得越来越重要。对于简单的视频缺陷,比如黑场,红、绿、蓝场以及静帧的缺陷,提出了相应的检测算法,用到的特征包括绝对差等这类简单的特征。对于复杂的视频缺陷,如马赛克缺陷,在分析现有算法的基础上,提出了一个快速有效的检测算法,采用了两种策略以提高检测速度:新的模板匹配及对边缘图像的预处理。所有以上检测算法都基于OpenCV库开发实现,使得整个算法的实现更快捷。进行了仿真实验,结果验证了所提算法的有效性。

关键词: 数字视频缺陷, 计算机视觉, OpenCV

Abstract: It becomes increasingly important to locate degraded video(video with defects) with the wide application of digital media.For simple form of digital video defects,such as black frame,red,blue and green frame,detection algorithms are proposed.In these algorithms,some typical features,such as mean,Absolute Difference(AD),are used.For the complex video flaw,exactly mosaic,a fast and effective detection algorithm is proposed based on analysis of existing approaches.Two tricks are adopted to speed up the detection:A new template matching strategy and the preprocessing of the edge image.All above defect detection algorithms are implemented based on the OpenCV library,which make the development of the system pleasant and easy.Experiments are carried out and the results show that the proposed algorithm has good performance.

Key words: digital video defect, computer vision, OpenCV

中图分类号: