1,248 | 23 | 18 |
下载次数 | 被引频次 | 阅读次数 |
利用平行双目相机模拟人的双眼获得真实世界物体距离信息的思想,在PC机上搭建一个基于MATLAB和OpenCV的双目立体视觉测距系统。讨论了相机校正,消除左右图像畸变,实现了左、右图像共面行对准;应用BM和SGBM算法获得深度图并最终获得了目标到摄像机的距离。该系统只需普通的平行双目相机采集左右图像,降低了成本。为满足短距离应用且获得较快速度匹配的要求,采用了BM和SGBM匹配方法,并对2种匹配方法进行了对比。结果表明:在物距1 m以内,2种匹配算法获得的距离相对误差均小于3%。
Abstract:In this research,parallel binocular cameras were used to simulate human eyes to obtain information about distance in the real world.A binocular vision distance measurement system was established based on MATLAB and OpenCV on PC.The paper discussed camera correction to eliminate image distortion and make the left and right images coplanar line alignment.The paper also calculated the depth map through BM and SGBM algorithms and ultimately obtained the distance between the object and the camera.The system only need the ordinary parallel binocular cameras to collect the left and right images,greatly reducing the cost.In order to meet the requirement of the short distance application and the fast speed matching,this paper adopted BM and SGBM matching methods and compared these two methods.Results from the experiments show that the relative errors of the two matching algorithms are less than 3%,if the object distance is within one meter.
[1]赵申.光流计算及其在被动测距中的应用研究[D].南京:南京理工大学,2008.
[2]汪珍珍,赵连玉,刘振忠.基于MATLAB与Open CV相结合的双目立体视觉测距系统[J].天津理工大学学报,2013,29(1):45-47.
[3]肖静文,青鑫月,万琦.基于Open CV与MATLAB的双目测距系统研究[J].信息通信,2015(2):21-23.
[4]刘涛,于忠清,马千里.基于平行双目视觉的目标距离计算[J].青岛大学学报:自然科学版,2009,2(1):59-62.
[5]崔岩.基于双目立体视觉的距离测量[D].长春:长春理工大学,2006.
[6]林俊义,黄常标,刘斌,等.双目立体视觉摄像机标定及精度分析[J].华侨大学学报:自然科学版,2011,32(4):364-367.
[7]章毓晋.图像工程[M].北京:清华大学出版社,2007.
[8]ZHANG Z Y.A flexible new technique for camera calibration[J].IEEE Transactions on.Pattern Analysis and Machine Intelligence,2000,22(11):1330-1334.
[9]于仕琪,刘瑞祯.学习Open CV[M].北京:清华大学出版社,2009.
[10]BLEYER M,GELAUTZ M.A layered stereo matching algorithm using image segmentation and global visibility constraints[J].ISPRS Journal of Photogrammetry and Remote Sensing,2005,59(3):128-150.
[11]张欢,安利,张强,等.SGBM算法与BM算法分析研究[J].测绘与空间地理信息,2016,39(10):214-216.
基本信息:
DOI:10.19573/j.issn2095-0926.201704010
中图分类号:TP391.41
引用信息:
[1]许威,丁学文,宋兰草等.基于MATLAB和OpenCV的双目视觉测距系统的实现[J].天津职业技术师范大学学报,2017,27(04):47-52.DOI:10.19573/j.issn2095-0926.201704010.
基金信息:
天津市科委科技特派员项目(16JCTPJC52500);; 天津市高等学校科技发展基金计划项目(20110710);; 天津职业技术师范大学科研发展基金资助项目(KYQD1705)