diff --git a/run-test-ci b/run-test-ci index f80516a3..cd8b6c49 100755 --- a/run-test-ci +++ b/run-test-ci @@ -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