From ea698bf7bcdeae4aa8eb5820c33d5b2c35b5223f Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 2 Sep 2019 10:34:09 +0100 Subject: Add training to tess install --- roles/tesseractor/tasks/main.yml | 1 + roles/tesseractor/tasks/training.yml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 roles/tesseractor/tasks/training.yml (limited to 'roles/tesseractor') 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 -- cgit v1.2.1-24-ge1ad