---
scribo/sandbox/icdar_13_table/Makefile | 3 ++-
.../competition-entry-region-model.xsd | 0
scribo/sandbox/icdar_13_table/src/main.cc | 9 ++++++---
3 files changed, 8 insertions(+), 4 deletions(-)
rename scribo/sandbox/icdar_13_table/{ =>
originals}/competition-entry-region-model.xsd (100%)
diff --git a/scribo/sandbox/icdar_13_table/Makefile
b/scribo/sandbox/icdar_13_table/Makefile
index 7c11bf1..baa9ae1 100644
--- a/scribo/sandbox/icdar_13_table/Makefile
+++ b/scribo/sandbox/icdar_13_table/Makefile
@@ -1,6 +1,7 @@
CCACHE=ccache
CC=g++
CFLAGS=-Wall -Werror -O3 -DHAVE_TESSERACT_3 -DNDEBUG -DMLN_WO_GLOBAL_VARS
+CFLAGS_OLD=-Wall -Werror -O3 -DHAVE_TESSERACT_3 -DNDEBUG
CLIBS=-I../../../milena/ -I../../ -I/usr/include/poppler
CLEAN=*.o output/* log final.xml
@@ -15,7 +16,7 @@ table:
$(CCACHE) $(CC) $(CFLAGS) $(CLIBS) $(SRC) -ltesseract -lpoppler-cpp -o $(OUTPUT)
old:
- $(CCACHE) $(CC) $(CFLAGS) $(CLIBS) $(SRC_OLD) -ltesseract -lpoppler-cpp -o
$(OUTPUT_OLD)
+ $(CCACHE) $(CC) $(CFLAGS_OLD) $(CLIBS) $(SRC_OLD) -ltesseract -lpoppler-cpp -o
$(OUTPUT_OLD)
clean:
rm -rf $(CLEAN)
diff --git a/scribo/sandbox/icdar_13_table/competition-entry-region-model.xsd
b/scribo/sandbox/icdar_13_table/originals/competition-entry-region-model.xsd
similarity index 100%
rename from scribo/sandbox/icdar_13_table/competition-entry-region-model.xsd
rename to scribo/sandbox/icdar_13_table/originals/competition-entry-region-model.xsd
diff --git a/scribo/sandbox/icdar_13_table/src/main.cc
b/scribo/sandbox/icdar_13_table/src/main.cc
index be394ba..3aa40c2 100644
--- a/scribo/sandbox/icdar_13_table/src/main.cc
+++ b/scribo/sandbox/icdar_13_table/src/main.cc
@@ -26,9 +26,12 @@
using namespace mln;
-void start_xml(std::ofstream& xml, const char* name, const char* pdf)
+void start_xml(std::ofstream& xml, const char* pdf)
{
- xml.open(name);
+ //std::ostringstream name;
+ //name << pdf << "-reg-result.xml";
+ //xml.open((name.str()).c_str());
+ xml.open("us-005-reg-result.xml");
xml << "<?xml version\"1.0\"
encoding=\"UTF-8\"?>" << std::endl
<< "<document filename='" << pdf <<
"'>" << std::endl;
}
@@ -212,7 +215,7 @@ int main(int argc, char** argv)
// Loading and binarization
std::ofstream xml;
- start_xml(xml, "final.xml", argv[1]);
+ start_xml(xml, argv[1]);
//io::ppm::load(original, argv[1]);
util::array< image2d<value::rgb8> > pdf;
--
1.7.2.5
Show replies by date