Electronic Science and Technology ›› 2022, Vol. 35 ›› Issue (11): 42-47.doi: 10.16180/j.cnki.issn1007-7820.2022.11.007

Previous Articles     Next Articles

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)


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

CLC Number: 

  • TP391