Based on structured-light vision measurement technology, we study a measuring method for microdiameter. The measurement principle and mathematical model are described. A novel grayscale barycenter extraction algorithm along the radial direction is proposed, which can precisely gather the image coord