The internal microstructure of rock determines its stress-strain state under the action of external force, and then controls its macro-mechanical response and failure mechanism. The study of rock fissures has important practical significance for finding minerals, hydrogeology, and engineering geology. In this paper, for prediction based on two-dimensional X-ray computed tomography (CT) images, a rock fracture prediction method based on gray prediction method is proposed. Each pixel in the image at the same position in each stage of the lower rock is arranged in sequence, and the RGB value of the corresponding pixel in the next stage is predicted by the gray prediction method. Calculate its residuals and test its prediction effect.