基于平滑相机路径的电子稳像算法研究
Research on Electronic Image Stabilization Algorithm Based on Smooth Camera Path
摘要: 在视频拍摄过程中受到环境和人为等因素的影响,拍摄出的视频存在抖动问题。为了解决视频抖动问题,提出了一种基于平滑相机路径的电子稳像方法,使相机运动路径更平滑,同时自适应地对运动补偿后的黑边进行去除,从而获得稳定的视频序列。首先,对加速稳健特征(SURF)算法进行分区域优化处理,用优化后的SURF算法进行特征点检测,并采用快速视网膜关键点(FREAK)算法对检测到的特征点进行描述;然后基于K近邻匹配(KNN)算法进行特征点对粗匹配,并采用采用随机样本一致性(RANSAC)算法和前向后向匹配算法进行特征点对的二次匹配;最后采用卡尔曼滤波算法优化估计的相机路径,获得更加平滑的相机路径,并采用双线性插值方法对原始视频序列进行运动补偿,以及自适应地去除补偿后视频序列的黑边。所提算法在两类实验场景下相较于原始相机序列的运动路径更加平滑,峰值信噪比(PSNR)值分别提升了4.39 dB和4.96 dB,从而说明该算法对抖动视频的稳定性和质量均有一定提升。
Abstract: In the process of video shooting, affected by environmental and human factors, the captured video has jitter. In order to solve the problem of video jitter, an electronic image stabilization method based on smooth camera path is proposed, which makes the camera motion path smoother, and at the same time adaptively removes the black border after motion compensation, so as to obtain a stable video sequence. First of all, the speeded up robust features (SURF) algorithm is optimized in sub-regions, the optimized SURF algorithm is used for feature point detection, and the fast retina keypoint (FREAK) algorithm is used to describe the detected feature points; then the feature point pairs are roughly matched based on the K-nearest neighbor (KNN) algorithm, the secondary matching of feature point pairs is carried out with the random sample consensus (RANSAC) algorithm and the forward and backward matching algorithm; finally, use the Kalman filter algorithm to optimize the estimated camera path to obtain a smoother camera path, and use the bilinear interpolation method to perform motion compensation on the original video sequence, and adaptively remove the black edges of the compensated video sequence. Compared with the original camera sequence, the motion path of this method is smoother in two types of experimental scenarios, and respectively get 4.39 dB and 4.96 dB improvement in peak signal-to-noise ratio (PSNR) value. The proposed algorithm can improve the stability and quality of shaking video.
文章引用:刘少波, 金晅宏, 钟德正. 基于平滑相机路径的电子稳像算法研究[J]. 运筹与模糊学, 2024, 14(3): 188-199. https://doi.org/10.12677/orf.2024.143257

参考文献

[1] 吉淑娇, 朱明, 胡汉平. 基于特征点匹配的电子稳像技术[J]. 中国光学, 2013, 6(6): 841-849.
[2] 戴雪龙. 电子稳像技术研究[D]: [硕士学位论文]. 广州: 广东工业大学, 2018.
[3] Verri, A., Uras, S. and De Micheli, E. (1989) Motion Segmentation from Optical Flow. Proceedings of the Alvey Vision Conference, Reading, 25-28 September 1989, 36.1-36.6. [Google Scholar] [CrossRef
[4] 王智, 金光, 杨简, 孙小伟, 钟平. 基于灰度投影的陀螺动态漂移检测算法[J]. 半导体光电, 2005, 26(2): 151-154.
[5] 张宇, 王晓燕. 低空目标的多级图像投影检测方法[J]. 计算机应用, 2014, 34(11): 3332-3335.
[6] Hu, R., Shi, R., Shen, I.-F. and Chen, W. (2007) Video Stabilization Using Scale-Invariant Features. 2007 11th International Conference Information Visualization, Zurich, 4-6 July 2007, 871-877. [Google Scholar] [CrossRef
[7] Morimoto, C. and Chellappa, R. (1996) Fast Electronic Digital Image Stabilization. Proceedings of 13th International Conference on Pattern Recognition, Vienna, 25-29 August 1996, 284-288. [Google Scholar] [CrossRef
[8] Liu, S., Yuan, L., Tan, P. and Sun, J. (2013) Bundled Camera Paths for Video Stabilization. ACM Transactions on Graphics, 32, Article No. 78. [Google Scholar] [CrossRef
[9] Grundmann, M., Kwatra, V. and Essa, I. (2011) Auto-Directed Video Stabilization with Robust L1 Optimal Camera Paths. CVPR 2011, Colorado Springs, 20-25 June 2011, 225-232. [Google Scholar] [CrossRef
[10] 李忠勤, 宋虎虎, 周海超. Surf结合区域生长的特征点提取改进算法[J]. 黑龙江科技大学学报, 2022, 32(1): 134-138.
[11] 董常青, 程雪岷, 郝群. 电子稳像算法的速度与精度改进[J]. 计算机辅助设计与图形学学报, 2018, 30(8): 1543-1553.
[12] Alahi, A., Ortiz, R. and Vandergheynst, P. (2012) FREAK: Fast Retina Keypoint. 2012 IEEE Conference on Computer Vision and Pattern Recognition, Providence, 16-21 June 2012, 510-517. [Google Scholar] [CrossRef
[13] Peterson, L.E. (2009) K-Nearest Neighbor. Scholarpedia, 4, Article 1883. [Google Scholar] [CrossRef
[14] 陈伟, 刘宇, 王亚伟, 孙静, 嵇婷, 赵青林. 基于改进的FAST-SURF快速图像拼接算法[J]. 应用光学, 2021, 42(4): 636-642.
[15] Tai, C. and Liu, Y. (2006) Robust Structure and Motion Estimation by Auto-Scale Random Sample Consensus. 2006 IEEE International Conference on Information Acquisition, Veihai, 20-23 August 2006, 37-42. [Google Scholar] [CrossRef
[16] 刘焕敏, 王华, 段慧芬. 一种改进的SIFT双向匹配算法[J]. 兵工自动化, 2009, 28(6): 89-91.
[17] 张淼. 视频稳像技术研究[D]: [硕士学位论文]. 上海: 上海交通大学, 2011.
[18] 彭丁聪. 卡尔曼滤波的基本原理及应用[J]. 软件导刊, 2009(11): 32-34.
[19] 盛晓艳, 龚超. 数字图像插值算法比较研究[J]. 电脑知识与技术, 2019, 15(8): 153-156.
[20] 马忠雪, 穆平安, 戴曙光. 基于特征点匹配的视频稳定算法[J]. 包装工程, 2018, 39(21): 229-234.