In this paper,we mainly study the two methods of measuring dimensions of industrial components based on image segmentation,including the ones based on Hough transform and based on the minimum bounding rectangle algorithm, and develope an image measurement system.Two methods are applied respectively according to different target shapes in the system.When the rectangular degree is higher than the component threshold we use Hough transform to detect four edges of the component, and then integrate them for dete...