The invention relates to a text line recognition method and device, a readable storage medium and electronic equipment. Wherein, the text line recognition method includes: inputting at least one text line image to be detected into a preset neural network model, and obtaining a detection result output by the preset neural network model, and the detection result is a character string in the text line image to be detected . Wherein, the preset neural network model is trained by using synthetic image samples as training samples. A synthetic image sample includes: samples, positive samples, difficult negative samples, and normal negative samples. In the technical solution provided by the present invention, by using synthetic image samples including samples, positive samples, difficult negative samples, and common negative samples as training samples of the preset neural network, the training samples of the preset neural network are associated image data, Thus, more supervision information is introduced, and compared with using independent random text line images as training data for training, the training effect of the preset neural network model is improved.