Taking UAV's patrol shooting of fan blades as the application background, the image stitching method of fan blade images is studied, a method of background segmentation and image gridding stitching is proposed. Through in-depth learning of U-Net algorithm, the main part of the fan is extracted from the image, which can effectively deal with the difficult problem of fan blade splicing caused by large parallax and uneven distribution of target background feature points. In the process of image grid optimization, the energy function is designed based on the strategy of protecting the global linearity of the fan blade, and the grid vertex is optimized to the edge of the fan. Linear features are effectively protected. The natural stitching of several fan blades is realized. The stitching image has small distortion and continuous reality.