---
scribo/ChangeLog | 5 +++++
scribo/scribo/text/recognition.hh | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 420997a..0aeb3dc 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-16 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * scribo/text/recognition.hh: Fix code for Tesseract 3.01
+ compatibility.
+
2011-10-06 Roland Levillain <roland(a)lrde.epita.fr>
Mention the ICDAR 2011 paper in SCRIBO's README.
diff --git a/scribo/scribo/text/recognition.hh b/scribo/scribo/text/recognition.hh
index 1e11a3e..b7e5c91 100644
--- a/scribo/scribo/text/recognition.hh
+++ b/scribo/scribo/text/recognition.hh
@@ -112,7 +112,7 @@ namespace scribo
TessBaseAPI::InitWithLanguage(NULL, NULL, language, NULL, false, 0, NULL);
# else // HAVE_TESSERACT_3
tesseract::TessBaseAPI tess;
- if (tess.Init(NULL, language, NULL, 0, false) == -1)
+ if (tess.Init(NULL, language, tesseract::OEM_DEFAULT) == -1)
{
std::cout << "Error: cannot initialize tesseract!" << std::endl;
abort();
@@ -220,7 +220,7 @@ namespace scribo
TessBaseAPI::InitWithLanguage(NULL, NULL, language, NULL, false, 0, NULL);
# else // HAVE_TESSERACT_3
tesseract::TessBaseAPI tess;
- if (tess.Init(NULL, language, NULL, 0, false) == -1)
+ if (tess.Init(NULL, language, tesseract::OEM_DEFAULT) == -1)
{
std::cout << "Error: cannot initialize tesseract!" << std::endl;
abort();
--
1.7.2.5