qjadud1994 / CRNN-Keras

CRNN (CNN+RNN) for OCR using Keras / License Plate Recognition
MIT License
521 stars 191 forks source link

How to label with txt or csv files ? #36

Open centurions opened 5 years ago

centurions commented 5 years ago

Would you please show me an examle of txt or cvs files structure and naming convention of that files for training . thank you

Nosferath commented 5 years ago

It seems that the texts are extracted on line 40 of file Image_Generator.py. What I'm doing is using a text file for each image, with the same name but with ".gt.txt" extension. I replaced line 40 with:

with open(self.img_dirpath + img_file.split(".")[0] + ".gt.txt") as f:
    self.texts.append(f.readline().strip())