* text/clean_inplace.hh,
* text/recognition.hh: Disable some debug output.
---
scribo/ChangeLog | 15 +++++++++++----
scribo/text/clean_inplace.hh | 14 +++++++-------
scribo/text/recognition.hh | 10 +++++-----
3 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 82ffb7b..b48eaff 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,18 +1,25 @@
2010-07-06 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Disable some debug output.
+
+ * text/clean_inplace.hh,
+ * text/recognition.hh: Disable some debug output.
+
+2010-07-06 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Add a tool for text recognition in natural pictures.
- scribo/src/Makefile.am: Add a new rule.
+ * src/Makefile.am: Add a new rule.
- scribo/src/text_recognition_in_picture.cc: New.
+ * src/text_recognition_in_picture.cc: New.
2010-07-06 Guillaume Lazzara <z(a)lrde.epita.fr>
Add text::look_like_text_lines.
- * scribo/text/look_like_text_lines.hh: New.
+ * text/look_like_text_lines.hh: New.
- * scribo/text/merging.hh: Make use of
+ * text/merging.hh: Make use of
text::look_like_text_lines.
2010-06-30 Arthur Crepin-Leblond <crepin(a)stockholm.lrde.epita.fr>
diff --git a/scribo/text/clean_inplace.hh b/scribo/text/clean_inplace.hh
index 2db3b73..4be4c29 100644
--- a/scribo/text/clean_inplace.hh
+++ b/scribo/text/clean_inplace.hh
@@ -111,11 +111,11 @@ namespace scribo
return;
float fact = line.x_height() / 40.0f;
- std::cout << fact << " - " << input.domain() <<
std::endl;
+// std::cout << fact << " - " << input.domain()
<< std::endl;
if (fact < 1)
{
- std::cout << "Upsampling..." << " - "
- << fact << std::endl;
+// std::cout << "Upsampling..." << " - "
+// << fact << std::endl;
while (fact < 0.90)
{
input = scribo::upsampling::eagle(input); // 2x upsampling
@@ -127,13 +127,13 @@ namespace scribo
}
else if (fact > 2.5f)
{
- std::cout << "subsampling::bilinear" << " - "
- << std::ceil(fact) << std::endl;
+// std::cout << "subsampling::bilinear" << " - "
+// << std::ceil(fact) << std::endl;
input = subsampling::bilinear(input, std::ceil(fact - 0.5)); // math::floor instead?
}
- else
- std::cout << "not clean_inplaceing text. Seems ok." << std::endl;
+// else
+// std::cout << "not clean_inplaceing text. Seems ok." <<
std::endl;
trace::exiting("scribo::text::clean_inplace");
}
diff --git a/scribo/text/recognition.hh b/scribo/text/recognition.hh
index 506ed66..80208cd 100644
--- a/scribo/text/recognition.hh
+++ b/scribo/text/recognition.hh
@@ -121,9 +121,9 @@ namespace scribo
if (! lines(i).is_valid() || lines(i).tag() != line::None || 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;
+// 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();
@@ -175,7 +175,7 @@ namespace scribo
if (s != 0)
{
- std::cerr << s << std::endl;
+// std::cerr << s << std::endl;
std::string str(s);
str = str.substr(0, str.length() - 2);
lines(i).update_text(str);
@@ -232,7 +232,7 @@ namespace scribo
if (s != 0)
{
- std::cout << s << std::endl;
+// std::cout << s << std::endl;
if (!output_file.empty())
{
std::string str(s);
--
1.5.6.5
Show replies by date