* src/Makefile.am: Add new rules to generate scribo-cli.
* src/scribo-cli.in: New.
---
scribo/ChangeLog | 8 +++
scribo/src/Makefile.am | 19 +++++++
scribo/src/scribo-cli.in | 135 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 162 insertions(+), 0 deletions(-)
create mode 100755 scribo/src/scribo-cli.in
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 2f58ec7..aacb71e 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,13 @@
2010-08-26 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Add scribo-cli script.
+
+ * src/Makefile.am: Add new rules to generate scribo-cli.
+
+ * src/scribo-cli.in: New.
+
+2010-08-26 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Setup what to install with Scribo.
* demo/viewer/Makefile.am: Do not install includes.
diff --git a/scribo/src/Makefile.am b/scribo/src/Makefile.am
index a977d38..84ee693 100644
--- a/scribo/src/Makefile.am
+++ b/scribo/src/Makefile.am
@@ -88,3 +88,22 @@ if HAVE_TESSERACT
endif HAVE_TESSERACT
endif HAVE_MAGICKXX
+
+
+# Generated by configure from scribo-cli.in.
+dist_bin_SCRIPTS = scribo-cli
+
+do_subst = sed -e 's|@utilexecdir[@]|$(utilexecdir)|g'
+
+scribo-cli: $(srcdir)/scribo-cli.in Makefile
+ rm -f $@ $@.tmp
+ srcdir=''; \
+ test -f ./$@.in || srcdir=$(srcdir)/; \
+ $(do_subst) $${srcdir}$@.in >$@.tmp
+ chmod +x $@.tmp
+ chmod a-w $@.tmp
+ mv $@.tmp $@
+
+CLEANFILES = $(bin_SCRIPTS)
+
+EXTRA_DIST = scribo-cli.in
diff --git a/scribo/src/scribo-cli.in b/scribo/src/scribo-cli.in
new file mode 100755
index 0000000..e271810
--- /dev/null
+++ b/scribo/src/scribo-cli.in
@@ -0,0 +1,135 @@
+# Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE).
+#
+# This file is part of Olena.
+#
+# Olena is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, version 2 of the License.
+#
+# Olena is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Olena. If not, see <http://www.gnu.org/licenses/>.
+#
+#!/bin/sh
+
+bdir="@utilexecdir@"
+bin=`basename $0`
+
+version()
+{
+ cat <<EOF
+SCRIBO Command LIne tool, version 1.0
+Copyright (C) 2010 LRDE/EPITA
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+EOF
+}
+
+usage()
+{
+ cat <<EOF
+Usage: $bin [version] [help] COMMAND [ARGS]
+
+List of available COMMAND argument:
+
+ Full Toolchains
+ ---------------
+
+
+ * On documents
+
+ doc-ppc Common preprocessing before looking for text.
+
+ doc-ocr Find and recognize text.
+
+
+
+ * On pictures
+
+ pic-loc Try to localize text if there's any.
+
+ pic-ocr Localize and try to recognize text.
+
+
+ Algorithms
+ ----------
+
+
+ * Binarization
+
+ sauvola Sauvola's algorithm.
+
+ sauvola-ms Multi-scale Sauvola's algorithm.
+
+ sauvola-ms-fg Extract foreground objects and run multi-scale
+ Sauvola's algorithm.
+
+ sauvola-ms-split Run multi-scale Sauvola's algorithm on each color
+ component and merge results.
+
+---------------------------------------------------------------------------
+See '$bin COMMAND --help' for more information on a specific command.
+EOF
+}
+
+
+run_cmd()
+{
+ cmd="$1";
+ shift;
+
+ case $cmd in
+
+ doc-ppc)
+ $bdir/text_in_doc_preprocess $@
+ ;;
+
+ doc-ocr)
+ $bdir/pbm_text_in_doc $@
+ ;;
+
+ pic-loc)
+ $bdir/text_in_picture $@
+ ;;
+
+ pic-ocr)
+ $bdir/text_recognition_in_picture $@
+ ;;
+
+ *)
+ cmd_bin=`echo $cmd | sed -e 's/-/_/g'`
+ if test -f $bdir/$cmd_bin; then
+ $bdir/$cmd_bin $@
+ else
+ echo "Error: Invalid command!"
+ usage
+ fi
+ esac
+}
+
+
+case $1 in
+
+ version | --version)
+ version
+ ;;
+
+
+ help | --help)
+
+ usage
+ ;;
+
+ help)
+
+ ;;
+
+ *)
+ run_cmd $1
+ ;;
+
+esac
--
1.5.6.5
* demo/review/Makefile.am: Make use of autotroll.
* demo/review/src/mainwindow.cc: Remove useless includes.
* demo/review/src/mainwindow.hh: Update include.
* demo/review/review.pro: Remove since useless.
---
scribo/ChangeLog | 12 +++++++++
scribo/demo/review/Makefile.am | 45 ++++++++++++++++++++++++++++-----
scribo/demo/review/review.pro | 16 ------------
scribo/demo/review/src/mainwindow.cc | 7 +----
scribo/demo/review/src/mainwindow.hh | 2 +-
5 files changed, 53 insertions(+), 29 deletions(-)
delete mode 100644 scribo/demo/review/review.pro
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 3978884..8285b94 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,17 @@
2010-08-26 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Make use of autotroll in demo/review.
+
+ * demo/review/Makefile.am: Make use of autotroll.
+
+ * demo/review/src/mainwindow.cc: Remove useless includes.
+
+ * demo/review/src/mainwindow.hh: Update include.
+
+ * demo/review/review.pro: Remove since useless.
+
+2010-08-26 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Install Scribo headers in include/scribo.
* Makefile.am: Update call to generate_dist_headers.sh.
diff --git a/scribo/demo/review/Makefile.am b/scribo/demo/review/Makefile.am
index b51084e..cd793db 100644
--- a/scribo/demo/review/Makefile.am
+++ b/scribo/demo/review/Makefile.am
@@ -1,11 +1,42 @@
-## Process this file through Automake to create Makefile.in.
+# Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+# (LRDE).
+#
+# This file is part of Olena.
+#
+# Olena is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, version 2 of the License.
+#
+# Olena is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-include $(top_srcdir)/scribo/scribo.mk
+include $(top_srcdir)/build-aux/autotroll.mk
-.PHONY : demo
+bin_PROGRAMS = scribo-review
+scribo_review_SOURCES = $(BUILT_SOURCES) \
+ src/main.cc \
+ src/mainwindow.cc
-Makefile.demo:
- qmake-qt4 $(srcdir)/demo/demo.pro -o Makefile.demo
+scribo_review_CPPFLAGS = $(QT_CPPFLAGS) $(AM_CPPFLAGS) \
+ -DNDEBUG \
+ -I$(srcdir) \
+ -I$(builddir)/ui
+scribo_review_CXXFLAGS = $(QT_CXXFLAGS) $(AM_CXXFLAGS) -O3
+scribo_review_LDFLAGS = $(QT_LDFLAGS) $(LDFLAGS)
+scribo_review_LDADD = $(QT_LIBS) $(LDADD)
-demo: Makefile.demo
- make -f Makefile.demo all
+BUILT_SOURCES = src/mainwindow.moc.cc \
+ ui/mainwindow.ui.h
+
+noinst_HEADERS = src/mainwindow.hh
+
+
+
+EXTRA_DIST = \
+ README \
+ review.qrc
diff --git a/scribo/demo/review/review.pro b/scribo/demo/review/review.pro
deleted file mode 100644
index 3ee66e9..0000000
--- a/scribo/demo/review/review.pro
+++ /dev/null
@@ -1,16 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Mon Jun 1 10:28:31 2009
-######################################################################
-
-TEMPLATE = app
-TARGET =
-DEPENDPATH += . src ui
-INCLUDEPATH += . src ../../../ ../../../milena
-DEFINES += NDEBUG
-
-# Input
-HEADERS += src/mainwindow.hh
-FORMS += ui/mainwindow.ui
-SOURCES += src/main.cc src/mainwindow.cc
-
-RESOURCES = review.qrc
diff --git a/scribo/demo/review/src/mainwindow.cc b/scribo/demo/review/src/mainwindow.cc
index f2d10a2..2f09ad7 100644
--- a/scribo/demo/review/src/mainwindow.cc
+++ b/scribo/demo/review/src/mainwindow.cc
@@ -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.
//
@@ -26,10 +27,6 @@
#include <QtCore>
#include <QtGui>
-#include <mln/core/image/image2d.hh>
-#include <mln/logical/not.hh>
-#include <mln/io/pbm/all.hh>
-
#include <src/mainwindow.hh>
diff --git a/scribo/demo/review/src/mainwindow.hh b/scribo/demo/review/src/mainwindow.hh
index cb32e30..5f92d5a 100644
--- a/scribo/demo/review/src/mainwindow.hh
+++ b/scribo/demo/review/src/mainwindow.hh
@@ -31,7 +31,7 @@
# include <QProcess>
# include <QtGui/QWidget>
# include <QProgressDialog>
-# include <ui_mainwindow.h>
+# include <mainwindow.ui.h>
namespace scribo
{
--
1.5.6.5
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next-build-test has been created
at 63c3277770ffaa3b4e398d55abda8c5d20dc9457 (commit)
- Log -----------------------------------------------------------------
63c3277 Regen .mk files in Scribo.
b410ac8 Compilation fixes.
47b8275 scribo/core/document.hh: Add new methods.
b36c24d scribo/io/xml/save.hh: Add conditions before saving elements and text.
75906d4 scribo/core/line_set.hh (is_valid()): New method.
0731c7c Regen mk files in Milena.
1ab4203 Introduce world::rgb::invert.
d6086ba Improve dispatch in arith::revert routine.
33bbebf mln/data/paste_without_localization.hh: Remove duplicate declarations.
aa2b96f mln/accu/stat/histo3d_rgb.hh: Import histo3d RGB accu from
9056104 scribo/primitive/group/from_double_link_any.hh: New.
7ae09a2 scribo/primitive/link/with_single_right_link_dmax_ratio_aligned.hh: New.
77cb972 Improve text_in_picture_neg.
7b6381a Do not negate Sauvola's output.
b7fe0b0 scribo/core/component_set.hh: Combine separator images.
b584d0d First draft of text_in_picture_neg
47dbda4 Add merge::components routine.
c30e01c Introduce text_in_picture toolchain.
a37cf92 src/content_in_doc.cc: New example extracting document content.
4e3b22c scribo/toolchain/text_in_doc.hh: Make use of non visible separators information.
c2ce47f scribo/io/xml/save.hh: Make use of document structure.
15f9077 scribo/primitive/extract/elements.hh: New routine.
929109d scribo/primitive/extract/separators_nonvisible.hh: New routine.
f6cd71c mln/clustering/kmean_rgb.hh: Import Kmean RGB from Yann's sandbox.
dc8a597 mln/fun/v2v/rgb8_to_rgbn.hh: Import rgb8 to rgbn conversion function from Yann's sandbox.
a6d10b9 scribo/core/macros.hh: Remove deprecated macro.
bb14430 scribo/core/document.hh: Introduce new document structure.
8de09d4 Merge branch 'exp/green' into next-build-test
f3beb04 Update default value in an example
05e90bb Add conversions from int_u to float and double.
ae08c96 mln/convert/from_to.hh: Make use of value::cast for conversions between built-in types.
4b787b3 mln/data/paste_without_localization.hh: Add a missing dispatch overload.
f046b9f mln/io/plot/save.hh: Remove an inline keyword.
986d2c9 Add missing MLN_WO_GLOBAL_VARS conditions.
f049b3b demo/viewer/Makefile.am: Remove deprecated dependencies.
e41a013 Include scribo.mk instead of tests.mk.
938b829 Add a new debug tool.
5a6d399 scribo/canvas/integral_browsing.hh: Cleanup comments.
5cc2327 src/binarization/sauvola_ms.cc: Add missing includes.
a10c9ac Set default window size to 101 in Sauvola examples.
3081130 Improve debug management and outputs for Sauvola.
68c4e75 Improve debug management and outputs for Sauvola.
e707239 mln/accu/stat/deviation.hh: Set first template parameter of accu::stat:sum to mln_sum(T).
398af6c arthur/xml_transform/xml_transform.pro: Define NDEBUG at compile time.
6f0918c Add missing const references to function arguments.
dc310b6 Changelog: Cleanup.
153406c Open Document bug warning.
af079ed Fix man error.
f0997ba Add arrows shortcuts.
811f992 Delete two build files.
32f92e4 Add shortcuts in Qt interface.
9c0bdaa Fix bug in Qt interface.
09c08ad OpenDocument output (odt and odf).
de57fc4 SVG output.
58691e5 Fix Segfault bug in Qt interface.
99635db Small changes in xml_transform.
e3767ee Files headers change + base64 data hide in xml tree.
ee3e8df Text selectable in Qt interface.
d7ea2d3 Some changes in XML interface.
6d0a92e Base 64 support in Qt interface (xmlc extension)
07a17b9 Two new features in Qt interface.
f7ae8c2 ChangeLog mistake.
e388d79 XML Tranform.
7c0d10c XML transform program.
4a399a3 ICDAR XML to HTML.
11d3d49 Small fix in Qt interface.
7fce05e src/Makefile.am (CLEANFILES): Fix invalid variable name.
af88c25 Add scribo-cli script.
a303457 Setup what to install with Scribo.
a51486d Make use of autotroll in demo/review.
656656d Install Scribo headers in include/scribo.
4f559a7 tests/Makefile.am (EXTRA_DIST): Fix path to files.
5ced6bd tests/Makefile.am (EXTRA_DIST): Add new files.
9735516 Re-enable 'table' directory in SUBDIRS.
28614aa Distribute Scribo.
-----------------------------------------------------------------------
hooks/post-receive
--
Olena, a generic and efficient image processing platform