The invention discloses a real-time video mosaic method, which belongs to the technical field of video image processing. The present invention relates to a method for calculating the overlapping area of a video frame image to be spliced by phase correlation method. The SURF (Speeded UP Robust Features) algorithm is improved to simplify the generation process of feature descriptor in SURF algorithm and descriptors to reduce the dimension of feature points extracted overlapping video frames by using the improved SURF algorithm; proposed an image registration method based on feature block matching, matching feature that reduces the amount of computation, improve the computational efficiency, and make use of the characteristic of block matching to calculate the image transform model; finally put forward a method to update the projection matrix based on correlation coefficient, used to update the projection matrix, prevent the stitching result wrong. Finally, the video frame images are fused to realize real-time video mosaic.
【技术实现步骤摘要】
本专利技术涉及一种视频拼接方法,将来自两个摄像头的视频流进行实时拼接,属于图像视频处理
技术介绍
视频拼接是将相互之间有部分重叠区域的多个视频拼接成一段宽视野、高分辨率的全景视频,它是在图像拼接的基础上发展起来的,是图像拼接技术的应用和扩展。视频拼接技术被广泛的应用在智能监控、视频会议、医学显微视频、航拍视频等领域。视频拼接是将多个摄像头拍摄到的视频流拼接成一个全景视频。不同于图像拼接的是视频拼接对时间要求比较高,所以现有的视频拼接方法都考虑到了时间复杂度,但是实时性比较差。ZhengM等人[参见文献ZhengM,ChenX,GuoL.StitchingVideofromWebcams[C].LectureNotesInComputerScience;Proceedingsofthe4thInternationalSymposiumonAdvancesinVisualComputing,PartII,2008:420-429]开发了一个基于摄像头的视频实时拼接系统,该系统只在初始化阶段计算投影矩阵,之后就不再计算投影矩阵,整个过程就利用同一个投影矩阵进行拼接。该系统可以实现实时性,但是算法不稳定,容易出现拼接错误。ZhangH等人[参见文献:ZhangH,ZengW.ForegroundbasedBorderlineAdjustingforRealTimeMulti-CameraVideoStitching[C].FifthInternationalConferenceonImageandGraphics(ICIG),2009:355-360] ...
【技术保护点】
一种基于改进的SURF算法的实时视频拼接方法,其特征在于,包括以下步骤:步骤1、、获取两个摄像头首帧图像,利用相位相关系数确定摄像头重叠范围;步骤2、提取相邻帧间重叠区域内的SURF特征点,并建立32维特征描述子;步骤3、将特征点进行分块匹配,求得投影矩阵;步骤4、利用相关系数更新投影矩阵步骤5、帧图像融合,实现视频拼接。
【技术特征摘要】
1.一种基于改进的SURF算法的实时视频拼接方法,其特征在于,包括以下步骤:步骤1、、获取两个摄像头首帧图像,利用相位相关系数确定摄像头重叠范围;步骤2、提取相邻帧间重叠区域内的SURF特征点,并建立32维特征描述子;步骤3、将特征点进行分块匹配,求得投影矩阵;步骤4、利用相关系数更新投影矩阵步骤5、帧图像融合,实现视频拼接。2.如权利要求1所述的一种基于改进的SURF算法的实时视频拼接方法,其特征在于,步骤2具体包括以下步骤:步骤201、计算以特征点为中心,以6为半径的圆形邻域内像素对Haar小波的响应值,并对各响应值进行高斯加权,其中,为特征点所在空间的尺度值,Haar小波的大小为2×2;步骤202、用45°的扇形滑动窗口滑动遍历该圆形邻域,滑动步长为弧度,每滑动一次,就对该窗口内元素的Haar小波响应值累加,得到一个特征子矢量[、、、]和矢量,其中;;步骤203、扇形滑动...
【专利技术属性】
技术研发人员:吴学文,原帅,周燕,刘娜,
申请(专利权)人:河海大学,
类型:发明
国别省市:江苏;32
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。