text2image -V (return code: 1)
ERROR: Non-existent flag --version
text2image --help (return code: 0)
USAGE: text2image
--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)
--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)
--tlog_level Minimum logging level for tlog() output (type:int default:0)
--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)
--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)
--fontconfig_refresh_cache Does a one-time deletion of cache files from the fontconfig_tmpdir before initializing fontconfig. (type:bool default:false)
--fontconfig_refresh_config_file Does a one-time reset of the fontconfig config file to point to fonts_dir before initializing fontconfig. Set to true if fontconfig_refresh_cache is true. Set it to false to use multiple instances in separate processes without having to rescan the fonts_dir, using a previously setup font cache (type:bool default:true)
--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:)
--fonts_dir Overrides system default font location (type:string default:/auto/ocr-data/tesstraining/fonts)
--fontconfig_tmpdir Overrides fontconfig default temporary dir (type:string default:/tmp)