How to finetune tesseract 5 with multiple fonts

158 views
Skip to first unread message

Muhammad Hamza

unread,
Jan 18, 2023, 7:52:24 AM1/18/23
to tesseract-ocr
I want to finetune the ell.traineddata with multiple fonts at once  can anyone tell me the flow of this scenario.

subprocess.run([
        'text2image',
        '--font=OCRA Medium',
        f'--text={line_training_text}',
        f'--outputbase={output_directory}/{file_base_name}',
        '--max_pages=1',
        '--strip_unrenderable_words',
        '--leading=32',
        '--xsize=3600',
        '--ysize=480',
        '--char_spacing=1.0',
        '--exposure=0',
        '--unicharset_file=langdata/bos.unicharset'
    ])

above in -font only one is mention can anyone tell me how i can train with multiple fonts at once 
thanks 
Message has been deleted
Message has been deleted
Message has been deleted

Ali hussain

unread,
Jul 25, 2023, 4:56:04 AM7/25/23
to tesseract-ocr
Reply all
Reply to author
Forward
0 new messages