电子科技 ›› 2022, Vol. 35 ›› Issue (11): 42-47.doi: 10.16180/j.cnki.issn1007-7820.2022.11.007

• • 上一篇    下一篇

一种基于图像处理技术的镜框尺寸测量系统

张志浩,付东翔,闫蕊   

  1. 上海理工大学 光电信息与计算机工程学院,上海 200093
  • 收稿日期:2021-04-15 出版日期:2022-11-15 发布日期:2022-11-11
  • 作者简介:张志浩(1993-),男,硕士研究生。研究方向:图像处理。|付东翔(1971-),男,博士,副教授。研究方向:计算机图形学。|闫蕊(1996-),女,硕士研究生。研究方向:图像处理。
  • 基金资助:
    国家自然科学基金(61605114);国家自然科学基金(61703277)

A Measuring System for Frame Size Based on Image Processing Technology

ZHANG Zhihao,FU Dongxiang,YAN Rui   

  1. School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology, Shanghai 200093,China
  • Received:2021-04-15 Online:2022-11-15 Published:2022-11-11
  • Supported by:
    National Natural Science Foundation of China(61605114);National Natural Science Foundation of China(61703277)

摘要:

针对在特殊情况下传统镜框尺寸测量方法存在不适用性的问题,文中提出了一种基于图像的非接触测量方法,利用图像处理技术对镜框轮廓进行提取测量。采用ERT定位人脸并根据特征点定位人脸镜框区域,在预处理和轮廓检测过程中使用改进的Canny算法得到更完整的镜框轮廓。镜框识别模式采用最小外接矩形法进行校正,提高了对镜框的提取精度,也便于后续对镜框轮廓进行尺寸测量。以瞳距为参照物得到镜框轮廓的实际尺寸信息。PC端的算法实现结果表明,文中所提的测量算法复杂度小、精确度高、测量速度快,可以在移动设备上对镜框轮廓尺寸进行快速准确的测量。

关键词: 图像处理, 镜框尺寸, 轮廓检测, ERT, 自适应, PD, 非接触, 预处理

Abstract:

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.

Key words: image processing, frame size, contour detection, ERT, adaptive, PD, non contact, pretreatment

中图分类号: 

  • TP391