Identifying glass defects through machine visual has a vital importance for the efficient production of high quality glass. In this paper, a method based on the combination of Non-negative Matrix Factorization (NMF) and Sparse Representation Classification (SRC) was proposed for the identification of glass defects. According to the properties of glass defect image, NMF algorithm is used to decompose a defect image into one base image and another weighted coefficient matrix, so the defect image is characterized by the coefficient matrix. Then, SRC algorithm is used to classify glass defects. Simulation results show that, with NMF and SRC, glass defects images could be effectively identified.