Permalink
Browse files

Expand run-test-ci

Test now also:
 * ocorpus-dewarp
 * ocropus-linegen
 * ocorpus-rtrain
  • Loading branch information...
zuphilip committed May 10, 2017
1 parent cf87717 commit 719bf9b75335c3539d14c316be0ba0c46951b7f0
Showing with 12 additions and 3 deletions.
  1. +12 −3 run-test-ci
View
@@ -15,13 +15,11 @@ test_page() {
$RUNNER $BASE/ocropus-nlbin "$BASE/tests/testpage.png" -o temp
$RUNNER $BASE/ocropus-gpageseg 'temp/????.bin.png'
$RUNNER $BASE/ocropus-rpred --parallel=0 --nocheck 'temp/0001/01000?.bin.png'
+ $RUNNER $BASE/ocropus-dewarp 'temp/0001/01001?.bin.png'
$RUNNER $BASE/ocropus-hocr 'temp/????.bin.png' -o temp.html 2>/dev/null
$RUNNER $BASE/ocropus-visualize-results temp
$RUNNER $BASE/ocropus-gtedit html temp/????/??????.bin.png -o temp-correction.html
set +x
- echo "# to see recognition results, type: firefox temp.html"
- echo "# to see correction page, type: firefox temp-correction.html"
- echo "# to see details on the recognition process, type: firefox temp/index.html"
}
test_conf() {
@@ -34,6 +32,17 @@ test_conf() {
$RUNNER $BASE/ocropus-econf temp/$TESTIMAGE.gt.txt
}
+test_linegen() {
+ $RUNNER $BASE/ocropus-linegen -m 3 -t $BASE/tests/tomsawyer.txt -f $BASE/tests/DejaVuSans.ttf
+}
+
+test_rtrain() {
+ tar -zxf $BASE/tests/uw3-500.tgz
+ $RUNNER $BASE/ocropus-rtrain 'book/*/*.bin.png' -N 5 -o ci-test-model
+}
+
rm -rf temp
test_page
test_conf
+test_linegen
+test_rtrain

0 comments on commit 719bf9b

Please sign in to comment.