Skip to content

Commit

Permalink
Expand run-test-ci
Browse files Browse the repository at this point in the history
Test now also:
 * ocorpus-dewarp
 * ocropus-linegen
 * ocorpus-rtrain
  • Loading branch information
zuphilip committed May 10, 2017
1 parent cf87717 commit 719bf9b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions run-test-ci
Expand Up @@ -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() {
Expand All @@ -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.