TextRecognitionDataGenerator icon indicating copy to clipboard operation
TextRecognitionDataGenerator copied to clipboard

Missing modules for handwritten text generation. Cannot open font

Open nithinreddyy opened this issue 4 years ago • 1 comments

trdg -i words.txt -c 20000 --output_dir data/train -ft your/fontfile

I'm trying to run the above command and it's throwing error like Missing modules for handwritten text generation. Cannot open font

The fonts I have are Arimo-Bold.ttf Arimo-BoldItalic.ttf Arimo-Italic.ttf Arimo-Regular.ttf Diner-Fatt.ttf Diner-Fatt.ttf Diner-Obese.ttf LeagueSpartan-Bold.otf

The Folder structure is

data ------ train your ------ fontfile (which it consists .ttf files)

nithinreddyy avatar Feb 23 '21 07:02 nithinreddyy

Use -fd instead of -ft. The former is for a directory while the latter is for a single font file. The missing handwritten module message is because you do not have TensorFlow installed (you probably don't need it).

Belval avatar Mar 02 '21 04:03 Belval