Glass Defect Detection Based on Image Processing