From 7a5de30d622a3f611d583e7712a83a6dbbe461d0 Mon Sep 17 00:00:00 2001 From: Castro0o Date: Tue, 20 Mar 2018 15:35:26 +0100 Subject: [PATCH] tiffs --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f76d10d..9e7a174 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ clean: ## removes output (target) files dirs: ## create the dirs in working dir @-mkdir -p images/ + @-mkdir -p @-mkdir -p output/ @-mkdir -p output/wordtagger @-mkdir -p ocr/ @@ -51,7 +52,13 @@ ocr/output.txt: ## ocr with tesseract @echo $(basename $@ .txt) tesseract $(@D)/list.txt $(basename $@ .txt) - +tiffs: ## convert images/ to images-tiff/ Depends on IM + echo $(images) + for i in $(images); \ + do tiff=`basename $$i .jpg`.tiff; \ + convert -density 300 $$i images-tiff/$$tiff; \ + echo $$tiff; \ + done; #OUTPUT GENERATION RECIPES