http://fossies.org/dox/tesseract-ocr-3.02.02/group__AdvancedAPI.html#gaadda8cd6abe770d2f6a70a18329b1973