tensorflow-ocr icon indicating copy to clipboard operation
tensorflow-ocr copied to clipboard

where is the data

Open gewenpulan opened this issue 6 years ago • 5 comments

I am running train_letter.py and return this "No such file or directory: 'fonts.list'"

gewenpulan avatar Jul 18 '17 08:07 gewenpulan

Same question here. Also /data/fonts/ directory missing as well.

calicratis19 avatar Jul 19 '17 16:07 calicratis19

/data/fonts/DroidSans.ttf missing

hbaslan avatar Oct 25 '17 09:10 hbaslan

sorry for the very late reply. the mechanism to automatically find the fonts was repaired.

pannous avatar Nov 30 '17 18:11 pannous

i am running on windows, the newest version still not ok , message :

F:\OCR\tensorflow-ocr-master>python train_letters.py extensions loaded using OVERFIT DEBUG DATA!!! Building fonts.list 'locate' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 Traceback (most recent call last): File "train_letters.py", line 4, in import letter File "F:\OCR\tensorflow-ocr-master\letter.py", line 68, in find_fonts() File "F:\OCR\tensorflow-ocr-master\letter.py", line 42, in find_fonts return readlines("fonts.list") File "F:\OCR\tensorflow-ocr-master\extensions.py", line 1400, in readlines return list(map(str.strip, open(source).readlines())) FileNotFoundError: [Errno 2] No such file or directory: 'fonts.list'

and i search this code : def find_fonts(): if platform == "darwin": os.system("mdfind -name '.ttf' | grep '.ttf$' | iconv -f utf-8 -t ascii > fonts.list") else: os.system("locate '.ttf' | grep '.ttf$' > fonts.list") return readlines("fonts.list")

no windows....

gewenpulan avatar Mar 02 '18 07:03 gewenpulan

added windows: sorry, how do I find fonts on Windows? falling back to Menlo.ttf

pannous avatar Mar 02 '18 10:03 pannous