Research on Small Workpiece Size Measurement Technology Based on Machine Vision
Two difficulties in measuring the size of small workpieces:the problems of low measurement efficiency and poor measurement accuracy,a fast measurement method for small workpiece size based on machine vision has been proposed.Firstly,bilateral filtering and grayscale processing were used to preprocess the original image,which improved the edge localization accuracy of the measured workpiece;Secondly,extract all contour information from the image that has obtained edge information,and eliminate invalid contours introduced by noise and background by calculating the length,area,and other information of the image contour;Finally,calculate the centroid coordinates and minimum bounding rectangle of the effective contour,obtain the position of the calibration workpiece based on the centroid coordinates,and compare the minimum bounding rectangle size of the calibration workpiece with the measured workpiece contour to obtain the measured workpiece size.The experimental results show that the absolute and relative errors of the measured workpiece size are small,and the size of the workpiece can be measured accurately and efficiently.