2023年第36卷第1期ElectronicSci.&Tech./Jan.15,2023https://journa-.xidian.edu.cn收稿日期:2021-06-16基金项目:国家自然科学基金(61605114;61703277)NationalNaturalScienceFoundationofChina(61605114;61703277)作者简介:王晓锋(1996-),男,硕士研究生。研究方向:计算机视觉。付东翔(1971-),男,博士,副教授。研究方向:计算机图形学。一种3D眼镜虚拟试戴系统的实现王晓锋,付东翔(上海理工大学光电信息与计算机工程学院,上海200093)摘要针对人脸图像试戴3D眼镜过程中存在的镜腿遮挡人脸问题,文中提出一种基于人脸图像的3D眼镜虚拟试戴技术。利用构建的人脸形状的三维模型,使其在虚拟试戴中对镜腿起到消隐作用,解决镜腿的遮挡问题。文中对输入的人脸图像进行关键点检测,结合Graham扫描法求得人脸形状的凸多边形,利用平移扫描构建人脸形状的三维模型。此外,文中根据定位人脸图像上的关键点以及姿态估计后对三维眼镜模型的变换,将眼镜模型佩戴到人脸图像上。实验结果表明,该方法对于多视角的人脸图像实现了虚拟试戴效果,解决了多种视角下人脸图像试戴过程中镜腿的遮挡问题,虚拟试戴中镜腿遮挡平均准确率为94.5%,遮挡精度较高。关键词虚拟试戴;遮挡问题;多视角试戴;凸包算法;Graham扫描法;关键点检测;姿态估计;平移扫描中图分类号TP391文献标识码A文章编号1007-7820(2023)01-044-07doi:10.16180/j.cnki.issn1007-7820.2023.01.007RealizationofAVirtualTry-onSystemfor3DGlassesWANGXiaofeng,FUDongxiang(SchoolofOptical-ElectricalandComputerEngineering,UniversityofShanghaiforScienceandTechnology,Shanghai200093,China)AbstractInordertosolvetheproblemthatthemirrorlegsshadethefaceintheprocessoftryingon3Dglassesonfaceimage,thisstudyproposesavirtualtryingonsystemof3Dglassesbasedonfaceimage.Thethree-dimen-sionalmodelofthefaceshapeisusedtoblankthemirrorlegandsolvetheocclusionproblemofthemirrorleg.Thekeypointsoftheinputfaceimagearedetected,andtheconvexhullofthefaceshapeisobtainedbycombiningtheGrahamscanningmethod,andthethree-dimensionalmodelofthefaceshapeisconstructedbythetranslationscan-ningmethod.Additionally,accordingtothepositioningofkeypointsonthefaceimageandthetransformationofthe3Dglassesmodelafterposeestimation,theglassesmodeliswornonth...