* scribo/scribo/text/merging.hh,
* scribo/scribo/text/recognition.hh:
Here.
---
scribo/ChangeLog | 8 ++++++++
scribo/scribo/text/merging.hh | 2 +-
scribo/scribo/text/recognition.hh | 4 ++--
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 2aee2ed..ca61cc9 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,13 @@
2013-08-27 Roland Levillain <roland(a)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(a)lrde.epita.fr>
+
Remove Scribo debug code making side effects on streams.
* scribo/core/line_set.hh,
diff --git a/scribo/scribo/text/merging.hh b/scribo/scribo/text/merging.hh
index f5afb72..c8878f2 100644
--- a/scribo/scribo/text/merging.hh
+++ b/scribo/scribo/text/merging.hh
@@ -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
diff --git a/scribo/scribo/text/recognition.hh b/scribo/scribo/text/recognition.hh
index 00e18d5..818a029 100644
--- a/scribo/scribo/text/recognition.hh
+++ b/scribo/scribo/text/recognition.hh
@@ -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();
}
--
1.7.10.4