The invention relates to a method for rapidly and safely predicting a tunnel face of an underground cavity on the basis of an image. The method comprises the following steps of 1, shooting by an infrared camera to acquire a tunnel face image in a current mileage; 2, carrying out image preprocessing on the tunnel face image; 3, carrying out clustering analysis; 4, carrying out lithologic identification to obtain lithologic classified information; 5, carrying out edge detection on the image preprocessed in the step 2; 6, carrying out boundary extraction to obtain bedding and jointing information of the tunnel face; 7, drawing a geologic sketch map of the current tunnel face by combining the lithologic classified information and the bedding and jointing information, and obtaining structural surface information of the current tunnel face; 8, moving to a next mileage and repeatedly carrying out the steps 1 to 7; 9, according to the extracted structural surface information, carrying out three-dimensional geologic modeling; 10, according to a model formed by the three-dimensional geologic modeling, carrying out rock mass analysis, predicting stability of rock masses and finally obtaining a cavity safety predicting result. Compared with the prior art, the method has the advantages of low noise, visual modeling and the like.