The invention relates to a workpiece positioning and identification method based on
image segmentation. The method comprises three stages of pre-
processing, workpiece region positioning and segmentation and characteristic extraction and identification, for pre-
processing, de-noising for an image for a workpiece on a conveying belt is carried out, gray stretch
image enhancement for the image after de-noising is carried out, operation like
thresholding is then carried out, the purpose is to highlight a workpiece region of the image, and preparation for positioning the workpiece region is carried out; for workpiece region positioning and segmentation, on the basis of a minimum enclosing rectangle segmentation
algorithm, the workpiece region is framed by a minimum enclosing rectangle, and a workpiece region image in the minimum enclosing rectangle is then acquired through
cutting and is taken as a characteristic extraction image; for characteristic extraction and identification, an invariant moment of the image and geometric characteristics of the image are extracted and taken as a characteristic set for classifier training, and multiple characteristics of various workpieces are taken as a training sample set to
train classifiers. The method is advantaged in that
algorithm design is simple and rapid, not only can accurate positioning be guaranteed, but also real-time demands on a pipeline can be further satisfied, and thereby positioning and identification of the workpiece on the conveying belt are realized.