Abstract:In order to improve the engineering application value of machine vision measurement technology and solve the problem of hole position measurement in car body shop, an efficient method based on two-dimensional image processing technology is proposed and used to measure the hole size and hole spacing of parts with the assistance of smart phone. A measurement benchmark sticker is employed to realize the function of engineering scale, and distortion correction algorithm can be used to improve the measurement accuracy. With the assistance of Canny algorithm, the outer edge contour of the hole can be obtained, and the morphological algorithm is used to remove the interference. After that, the minimum circumscribed rectangle of the hole in parts is calculated to obtain the geometric dimension. Experimental results show that the absolute error of hole dimension is less than 0.4 mm, the proposed method can be used as a supplementary mean to measure the hole with large tolerance in workshop.