After hydraulic fracturing, the geometric characteristics of rock morphology is a crucial means for evaluating the effectiveness of fracture stimulation in enhancing production. In order to quantitatively analyze the surface undulations of marine and continental shale morphology further following hydraulic fracturing, a method for calculating the three-dimensional fractal dimension of fracture surfaces based on optical scanning technology is proposed. This method involves the acquisition of point cloud data using a 3D surface scanner. The obtained data are subsequently subjected to smoothing processes, followed by the reconstruction of the three-dimensional representation of the fractures. The box-counting dimension algorithm is employed to calculate the fractal characteristics of post-fracture morphology. The research results indicate that marine shale, due to its higher proportion of brittle minerals such as quartz and calcite, predominantly exhibits vertically oriented longitudinal fractures, perpendicular to the minimum horizontal stress. The average initiation pressure is 8% higher compared to continental shale, with an average fractal dimension of 2.24397. In contrast, continental shale, characterized by its high clay content and the development of natural fractures and bedding planes, is more prone to capturing hydraulic fracture features, resulting in predominantly single transverse shear fractures. The average fractal dimension is 2.087065, which is 7% lower than that of marine shale. These research findings offer a certain degree of guidance for the optimization of fracturing process parameters for different types of reservoirs.