* scribo/sandbox/icdar_13_table/src/new.cc: Use the multiscale
version of the Sauvola binarization.
(main): Remove an unused variable.
Remove superfluous `return' statement.
---
scribo/sandbox/icdar_13_table/src/new.cc | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/scribo/sandbox/icdar_13_table/src/new.cc
b/scribo/sandbox/icdar_13_table/src/new.cc
index b13696e..02e7594 100644
--- a/scribo/sandbox/icdar_13_table/src/new.cc
+++ b/scribo/sandbox/icdar_13_table/src/new.cc
@@ -26,7 +26,6 @@
#include <tesseract/baseapi.h>
// INCLUDES SCRIBO
-#include <scribo/binarization/sauvola.hh>
#include <scribo/binarization/sauvola_ms.hh>
#include <scribo/core/component_set.hh>
@@ -353,8 +352,7 @@ int main(int argc, char** argv)
{
I8 original = pdf[page];
image2d<value::int_u8> filtered = data::transform(original,
fun::v2v::rgb_to_luma<value::int_u8>());
- IB bin = scribo::binarization::sauvola(filtered, 81, 0.44);
- //IB bin = scribo::binarization::sauvola_ms(filtered, 81, 2);
+ IB bin = scribo::binarization::sauvola_ms(filtered, 81, 2);
// Reverse selection
IB reverse = logical::not_(bin);
@@ -378,7 +376,6 @@ int main(int argc, char** argv)
// Find separators
IB bin_without_separators = duplicate(bin);
- IB separators = separators;
V nhlines, nvlines;
unsigned min_width = 31;
unsigned min_height = 71;
@@ -489,6 +486,4 @@ int main(int argc, char** argv)
}
delete xml;
-
- return 0;
}
--
1.7.2.5
Show replies by date