summaryrefslogtreecommitdiff
path: root/roles/tesseractor
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-09-02 10:34:09 +0100
committerNick White <git@njw.name>2019-09-02 10:34:09 +0100
commitea698bf7bcdeae4aa8eb5820c33d5b2c35b5223f (patch)
tree078936e3b12e45621b6156f539d4e77d742fb81f /roles/tesseractor
parent14ddee7c050d90f5cc478918d8b3290e8375483b (diff)
Add training to tess install
Diffstat (limited to 'roles/tesseractor')
-rw-r--r--roles/tesseractor/tasks/main.yml1
-rw-r--r--roles/tesseractor/tasks/training.yml8
2 files changed, 9 insertions, 0 deletions
diff --git a/roles/tesseractor/tasks/main.yml b/roles/tesseractor/tasks/main.yml
index 4336c04..e406e2f 100644
--- a/roles/tesseractor/tasks/main.yml
+++ b/roles/tesseractor/tasks/main.yml
@@ -2,3 +2,4 @@
- include: ldlocal.yml
- include: leptonica.yml
- include: tesseract.yml
+- include: training.yml
diff --git a/roles/tesseractor/tasks/training.yml b/roles/tesseractor/tasks/training.yml
new file mode 100644
index 0000000..31bf1b8
--- /dev/null
+++ b/roles/tesseractor/tasks/training.yml
@@ -0,0 +1,8 @@
+---
+# Installs tesseract training files
+
+# TODO: get this from somewhere more sensible
+- name: Install tesseract training files
+ copy: src={{ item }} dest=/usr/local/share/tesseract
+ with_items:
+ - /home/nick/rescribe/2018-natphil/tmp/tessdata/rescribealphav5.traineddata