Researching and implementing efficient geometric correction algorithms can effectively improve the efficiency of image preprocessing of solar cells. In this paper, the image distortion repair method based on polynomial transformation and bilinear interpolation is studied. Then, the distorted image of the solar cell is divided into multiple sub-blocks, and the sub-blocks are respectively subjected to polynomial transformation-bilinear interpolation correction. During the reprocessing process, the redundancy effect caused by the coordinate transformation is minimized and the correction speed is improved. The example proves that the algorithm can solve the problem of distortion of solar cell image. This code also applies to the geometric correction requirements of other images that contain raster line features.