Aiming at the problem of "crystallization" on the surface of Yuan blue and white ceramics, which causes reflections and loss of image texture, an image processing method is proposed to repair the image texture information. A multi-scale Retinex pre-processing method is proposed to enhance the contrast between the pattern and the background. A color factor is introduced to prevent color distortion. A weighted average function is constructed to enhance image details and improve texture information. The Yuan blue and white pattern can be effectively segmented from the background using a combination of multi-peak thresholding for segmentation and other techniques. The experimental results demonstrate that, in comparison to other algorithms, the multi-scale Retinex and histogram multi-peak threshold coupled segmentation method proposed in this paper exhibits the highest F1-score of 0.03067 and an accuracy of 92.67% in cross-evaluation with other algorithms. This indicates that the overall performance of the algorithm is the best. The proposed method has the potential to inform the protection of cultural relics.