Three groups of defective sample images and the ground-truth images were artificially generated through some algorithms, including five types of defects, namely, broken end, hole, netting multiple, thin bar and thick bar.