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