Commit cc2c4ef3 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

scribo/text/recognition.hh: Fix code for Tesseract 3.01 compatibility.

parent 1f0b6046
2011-11-16 Guillaume Lazzara <z@lrde.epita.fr>
* scribo/text/recognition.hh: Fix code for Tesseract 3.01
compatibility.
2011-10-06 Roland Levillain <roland@lrde.epita.fr>
Mention the ICDAR 2011 paper in SCRIBO's README.
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment