The invention belongs to the technical field of image recognition, and particularly relates to a text line rotation correction method and device based on projection. At present, common optical character recognition algorithms mostly adopt algorithms such as path search and connected domain analysis to directly perform character segmentation, are susceptible to noise interference, and are relatively high in error rate and relatively low in efficiency. The projection technology is adopted, the text line direction can be rapidly and accurately positioned and the rotation correction angle can be calculated according to the corresponding relation between the aspect ratio of the projection curve and the text line inclination angle so that a text line image in the horizontal direction can be acquired, and the projection method is efficient, accurate and great in stability. Through coarse positioning and fine positioning processes, the operation rate is improved, and the accuracy of the algorithm is improved; the method is easy to implement, low in algorithm complexity, universal and suitable for popularization and application in the industry.