mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
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:
parent
9c0dfe54c5
commit
d451b28054
@ -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();
|
||||
|
||||
|
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user