* scribo/debug/usage.hh,
* scribo/text/recognition.hh: Remove useless comments.
---
scribo/ChangeLog | 9 ++++++++-
scribo/scribo/debug/usage.hh | 9 +++------
scribo/scribo/text/recognition.hh | 8 --------
3 files changed, 11 insertions(+), 15 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 3b094e0..0813a97 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,6 +1,13 @@
2010-10-25 Guillaume Lazzara <z(a)lrde.epita.fr>
- Add a new toolchain.
+ Cleanup files.
+
+ * scribo/debug/usage.hh,
+ * scribo/text/recognition.hh: Remove useless comments.
+
+2010-10-25 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ Add a new example.
* src/Makefile.am: Add toolchain subdir.
diff --git a/scribo/scribo/debug/usage.hh b/scribo/scribo/debug/usage.hh
index 2c6fa48..7a284e3 100644
--- a/scribo/scribo/debug/usage.hh
+++ b/scribo/scribo/debug/usage.hh
@@ -1,4 +1,5 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -41,7 +42,6 @@ namespace scribo
/// \param[in] desc Description of the program.
/// \param[in] args The expected arguments.
/// \param[in] args_desc The description of the expected arguments.
- /// \param[in] out_desc The description of the output.
///
/// \return Return 1.
//
@@ -67,11 +67,8 @@ namespace scribo
std::cout << " " << args_desc[i][0] << ": "
<< args_desc[i][1]
<< std::endl;
-// if (out_desc)
-// std::cout << std::endl << "Output: " << out_desc <<
std::endl;
-
std::cout << "-----------" << std::endl;
- std::cout << "EPITA/LRDE - Scribo 2009" << std::endl;
+ std::cout << "EPITA/LRDE - Scribo 2008-2010" << std::endl;
return 1;
}
diff --git a/scribo/scribo/text/recognition.hh b/scribo/scribo/text/recognition.hh
index 8cb0e96..17cbaa2 100644
--- a/scribo/scribo/text/recognition.hh
+++ b/scribo/scribo/text/recognition.hh
@@ -121,10 +121,6 @@ namespace scribo
if (! lines(i).is_valid() || lines(i).is_hidden() || lines(i).type() != line::Text)
continue;
-// std::cout << "Text recognition... ("
-// << i << "/" << lines.nelements() <<
")" << std::endl;
-// std::cout << "x_height = " << lines(i).x_height() <<
std::endl;
-
mln_domain(I) box = lines(i).bbox();
// Make sure characters are isolated from the borders.
@@ -150,7 +146,6 @@ namespace scribo
/// text_ima_cleaned domain may be larger than text_ima's.
text::clean_inplace(lines(i), text_ima);
-// mln::io::pbm::save(text_ima_cleaned, mln::debug::filename("line.pbm",
debug_id++));
// Make sure characters are isolated from the borders.
// Help Tesseract.
@@ -160,7 +155,6 @@ namespace scribo
data::fill(line_image, false);
data::paste_without_localization(text_ima, line_image);
-// mln::io::pbm::save(line_image, mln::debug::filename("line_image.pbm",
debug_id++));
// Recognize characters.
char* s = TessBaseAPI::TesseractRect(
@@ -175,7 +169,6 @@ namespace scribo
if (s != 0)
{
-// std::cerr << s << std::endl;
std::string str(s);
str = str.substr(0, str.length() - 2);
lines(i).update_text(str);
@@ -232,7 +225,6 @@ namespace scribo
if (s != 0)
{
-// std::cout << s << std::endl;
if (!output_file.empty())
{
std::string str(s);
--
1.5.6.5
Show replies by date