fix issue 1127; add unvl output to tesseract executable

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1052 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
zdenop 2014-03-02 14:40:21 +00:00
parent 9c0dfe54c5
commit d451b28054
2 changed files with 4 additions and 1 deletions

View File

@ -302,6 +302,9 @@ int main(int argc, char **argv) {
if (b && renderer == NULL)
renderer = new tesseract::TessPDFRenderer(api.GetDatapath());
api.GetBoolVariable("tessedit_write_unlv", &b);
if (b && renderer == NULL) renderer = new tesseract::TessUnlvRenderer();
api.GetBoolVariable("tessedit_create_boxfile", &b);
if (b && renderer == NULL) renderer = new tesseract::TessBoxTextRenderer();

View File

@ -350,7 +350,7 @@ fi
AC_MSG_CHECKING([leptonica version >= 1.70])
AC_PREPROC_IFELSE(
[AC_LANG_PROGRAM([#include <leptonica/allheaders.h>],
[#if (LIBLEPT_MINOR_VERSION >= 1) && (LIBLEPT_MINOR_VERSION >= 70)
[#if (LIBLEPT_MAJOR_VERSION >= 1) && (LIBLEPT_MINOR_VERSION >= 70)
int i = 0;
#else
#error You need to upgrade your leptonica library!