A surface defect identification method based on improved threshold segmentation algorithm