Commit 6b9bc50e authored by Roland Levillain's avatar Roland Levillain
Browse files

Display Scribo errors on std::cerr, not std::cout.

	* scribo/scribo/text/merging.hh,
	* scribo/scribo/text/recognition.hh:
	Here.
parent a2d5c260
2013-08-27 Roland Levillain <roland@lrde.epita.fr>
Display Scribo errors on std::cerr, not std::cout.
* scribo/scribo/text/merging.hh,
* scribo/scribo/text/recognition.hh:
Here.
2013-08-27 Roland Levillain <roland@lrde.epita.fr>
Remove Scribo debug code making side effects on streams.
......
......@@ -787,7 +787,7 @@ namespace scribo
else // FIXME: Remove! since included in a non-text-line, so not drawn, so inclusion impossible!!!!!!!!!!
{
std::cout << "error: should NOT happen (a text line included in a NON-text-line (so not drawn!!!)" << std::endl;
std::cerr << "error: should NOT happen (a text line included in a NON-text-line (so not drawn!!!)" << std::endl;
++count_txtline_IN_junk;
// a non-text-line (probably a drawing or a frame) includes a text line
......
......@@ -308,7 +308,7 @@ namespace scribo
tesseract::TessBaseAPI tess;
if (tess.Init(NULL, language, tesseract::OEM_DEFAULT) == -1)
{
std::cout << "Error: cannot initialize tesseract!" << std::endl;
std::cerr << "Error: cannot initialize tesseract!" << std::endl;
abort();
}
tess.SetPageSegMode(tesseract::PSM_SINGLE_LINE);
......@@ -396,7 +396,7 @@ namespace scribo
tesseract::TessBaseAPI tess;
if (tess.Init(NULL, language, tesseract::OEM_DEFAULT) == -1)
{
std::cout << "Error: cannot initialize tesseract!" << std::endl;
std::cerr << "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