Based on Matlab image processing technology,this paper conducts binarization processing on the grotto photos ob-tained from the field investigation of Jiaoshan Temple Grottoes,aiming to eliminate a series of problems,such as uneven shooting light and interference sources in the pictures,and clearly show the crack damage of rock mass in the image.After the Matlab image binarization processing of images,the severity of crack damage location and damage can be displayed visually,convenient for obser-vation analysis.Following inductive analysis was carried out on the processed images at the same time,and points out characteris-tics,types,and causes for the grotto diseases.