sijintv / tesseractindic-legacy

Legacy codebase of tessarctindic project
https://code.google.com/archive/p/tesseractindic/
Other
0 stars 0 forks source link

TesseractGUI0.1.2 command line not working #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. python generate.py -font Mitra -l Bengali -s 15 -a beng.alphabet/

2.
3.

What is the expected output? What do you see instead?
Traceback (most recent call last):
 File "generate.py", line 170, in <module>
   draw(font_string,int(font_size),lang,file.read_file(alphabet_dir))#reads
all fonts in the directory font_dir and trains
TypeError: draw() takes exactly 5 arguments (4 given)

Please use labels and text to provide additional information.

Original issue reported on code.google.com by indu....@gmail.com on 7 Dec 2009 at 11:18

GoogleCodeExporter commented 8 years ago
The problem has been fixed. Changed line 28 of tesseract_trainer/generate.py 
from:

def draw(font_string,font_size,lang,alphabets,outdir):

               to

def draw(font_string,font_size,lang,alphabets,outdir="."):

Kindly proceed to download on the download page.

Original comment by debayanin on 7 Dec 2009 at 11:45