为了实现点胶加工工件的三维模型重建,在分析了SFM(structure from motion)算法原理和五轴点胶机特点的基础上,提出了一种在五轴机床上使用单目相机实现工件三维模型重建的方法.首先,通过标定获得相机内外参,建立世界坐标系、机床坐标系与相机坐标系之间的关系;其次,从不同角度拍摄工件,与一般SFM不同的是拍摄时由机床机械坐标计算出相机位姿作为外参;最后,将图像序列和相机内外参作为输入,经过稀疏重建与稠密重建输出三维模型.实验结果表明,选用恰当的原始数据与参数可以高效地完成重建任务,重建成功率在90%以上,平均重投影误差为0.653 144 pixels.
Application of 3D Reconstruction Based on SFM in Dispensing Processing
A method for reconstructing workpiece models using a monocular camera on a five-axis machine tool was proposed.The method analyzes the SFM(structure from motion)algorithm and the characteristics of a five-axis dispensing machine.Firstly,the camera′s internal and external parameters are obtained through calibration,and the relationship between the world coordinate system,machine coordinate system,and camera coordinate system is established;Then,the workpiece is photographed from different angles.Unlike general SFM,the camera pose is calculated from the mechanical coordinates of the machine tool as an external reference during the shooting process;Finally,using image sequence and camera parameters,a 3D model is obtained through sparse and dense reconstruction.The experimental results show that the re-construction task can be efficiently completed by selecting appropriate raw data and parameters,the recon-struction success rate is more than 90%,and the average re projection error is 0.653 144 pixels.