Usage: /usr/bin/text2image [OPTION ...] --debug_level Level of Trainer debugging (type:int default:0) --load_images Load images with tr files (type:int default:0) --tlog_level Minimum logging level for tlog() output (type:int default:0) --exposure Exposure level in photocopier (type:int default:0) --resolution Pixels per inch (type:int default:300) --xsize Width of output image (type:int default:3600) --ysize Height of output image (type:int default:4800) --max_pages Maximum number of pages to output (0=unlimited) (type:int default:0) --margin Margin round edges of image (type:int default:100) --ptsize Size of printed text (type:int default:12) --leading Inter-line space (in pixels) (type:int default:12) --box_padding Padding around produced bounding boxes (type:int default:0) --glyph_resized_size Each glyph is square with this side length in pixels (type:int default:0) --glyph_num_border_pixels_to_pad Final_size=glyph_resized_size+2*glyph_num_border_pixels_to_pad (type:int default:0) --clusterconfig_min_samples_fraction Min number of samples per proto as % of total (type:double default:0.625) --clusterconfig_max_illegal Max percentage of samples in a cluster which have more than 1 feature in that cluster (type:double default:0.05) --clusterconfig_independence Desired independence between dimensions (type:double default:1) --clusterconfig_confidence Desired confidence in prototypes created (type:double default:1e-06) --char_spacing Inter-character space in ems (type:double default:0) --underline_start_prob Fraction of words to underline (value in [0,1]) (type:double default:0) --underline_continuation_prob Fraction of words to underline (value in [0,1]) (type:double default:0) --min_coverage If find_fonts==true, the minimum coverage the font has of the characters in the text file to include it, between 0 and 1. (type:double default:1) --degrade_image Degrade rendered image with speckle noise, dilation/erosion and rotation (type:bool default:true) --rotate_image Rotate the image in a random way. (type:bool default:true) --distort_image Degrade rendered image with noise, blur, invert. (type:bool default:false) --invert Invert the image (type:bool default:true) --white_noise Add Gaussian Noise (type:bool default:true) --smooth_noise Smoothen Noise (type:bool default:true) --blur Blur the image (type:bool default:true) --strip_unrenderable_words Remove unrenderable words from source text (type:bool default:true) --ligatures Rebuild and render ligatures (type:bool default:false) --find_fonts Search for all fonts that can render the text (type:bool default:false) --render_per_font If find_fonts==true, render each font to its own image. Image filenames are of the form output_name.font_name.tif (type:bool default:true) --list_available_fonts List available fonts and quit. (type:bool default:false) --render_ngrams Put each space-separated entity from the input file into one bounding box. The ngrams in the input file will be randomly permuted before rendering (so that there is sufficient variety of characters on each line). (type:bool default:false) --output_word_boxes Output word bounding boxes instead of character boxes. This is used for Cube training, and implied by --render_ngrams. (type:bool default:false) --bidirectional_rotation Rotate the generated characters both ways. (type:bool default:false) --only_extract_font_properties Assumes that the input file contains a list of ngrams. Renders each ngram, extracts spacing properties and records them in output_base/[font_name].fontinfo file. (type:bool default:false) --output_individual_glyph_images If true also outputs individual character images (type:bool default:false) --configfile File to load more configs from (type:string default:) --D Directory to write output files to (type:string default:) --F File listing font properties (type:string default:font_properties) --X File listing font xheights (type:string default:) --U File to load unicharset from (type:string default:unicharset) --O File to write unicharset to (type:string default:) --output_trainer File to write trainer to (type:string default:) --test_ch UTF8 test character string (type:string default:) --fonts_dir (type:string default:) --fontconfig_tmpdir (type:string default:) --text File name of text input to process (type:string default:) --outputbase Basename for output image/box file (type:string default:) --writing_mode Specify one of the following writing modes. 'horizontal' : Render regular horizontal text. (default) 'vertical' : Render vertical text. Glyph orientation is selected by Pango. 'vertical-upright' : Render vertical text. Glyph orientation is set to be upright. (type:string default:horizontal) --font Font description name to use (type:string default:Arial) --unicharset_file File with characters in the unicharset. If --render_ngrams is true and --unicharset_file is specified, ngrams with characters that are not in unicharset will be omitted (type:string default:)