| With the rapid development of computer science,binocular stereo vision,as an important branch of computer vision,has been applied to all fields of production and life.Binocular stereo vision technology is based on the principle of human vision,and based on the parallax theory,the 3D reconstruction of objects is realized.Binocular stereo vision technology uses binocular camera to collect the left and right images of the reconstructed object,and uses the stereo matching algorithm to match the same point of the left and right views,calculate the position deviation between the two images,obtain the parallax graph,and then get the depth information of the object.Based on the theory of parallax,this paper proposes a binocular stereo vision 3D reconstruction method,and realizes the 3D reconstruction of object prototype.The reconstruction technology uses OpenCV(Open Source Computer Vision Library,open source computer vision library),combined with OpenGL(Open Graphics Library,open professional graphics library),MFC(Microsoft Foundation Classes,the Microsoft base library).The main contents include Zhang's checkerboard calibration,Bouguet stereo correction,stereo matching,and key technology of 3D reconstruction.After the key technology flow,we get the depth information of the object and display the 3D view,so as to achieve the purpose of this design.It is worth pointing out in this system that in order to improve the matching efficiency,besides using the SGBM(Semi-Global Block Matching,semi global block matching)stereo matching algorithm provided by OpenCV,the RANSAC(Random Sample Consensus,random sampling uniform algorithm)iterative algorithm is also used in the design.The experimental results verify the effectiveness of this improvement.Finally,the three-dimensional reconstruction algorithm is proposed to measure the diameter of the cylindrical object.This experiment proves the feasibility of the 3D reconstruction system we designed in the practical application. |