摘要
针对在特殊情况下传统镜框尺寸测量方法存在不适用性的问题,文中提出了一种基于图像的非接触测量方法,利用图像处理技术对镜框轮廓进行提取测量。采用ERT定位人脸并根据特征点定位人脸镜框区域,在预处理和轮廓检测过程中使用改进的Canny算法得到更完整的镜框轮廓。镜框识别模式采用最小外接矩形法进行校正,提高了对镜框的提取精度,也便于后续对镜框轮廓进行尺寸测量。以瞳距为参照物得到镜框轮廓的实际尺寸信息。PC端的算法实现结果表明,文中所提的测量算法复杂度小、精确度高、测量速度快,可以在移动设备上对镜框轮廓尺寸进行快速准确的测量。
In response to the inapplicability of traditional frame size measurement methods under special circumstances,this study proposes an image-based non-contact measurement method which uses image processing technology to extract and measure the outline of the frame.ERT is used to locate the face and locate the face frame area according to the feature points.In the process of preprocessing and contour detection,an improved Canny algorithm is used to obtain a more complete frame contour.The frame recognition mode is calibrated by the minimum bounding rectangle method,which improves the extraction accuracy of the frame,and facilitates the subsequent size measurement of the frame outline.The actual size information of the outline of the lens frame is obtained with the interpupillary distance as the reference object.The results of the algorithm implementation on the PC side show that the proposed measurement algorithm has low complexity,high accuracy,and fast measurement speed,and can quickly and accurately measure the outline size of the frame on a mobile device.
作者
张志浩
付东翔
闫蕊
ZHANG Zhihao;FU Dongxiang;YAN Rui(School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China)
出处
《电子科技》
2022年第11期42-47,共6页
Electronic Science and Technology
基金
国家自然科学基金(61605114,61703277)。