master
Castro0o 7 years ago
parent 8d1841dc97
commit 7a5de30d62

@ -31,6 +31,7 @@ clean: ## removes output (target) files
dirs: ## create the dirs in working dir dirs: ## create the dirs in working dir
@-mkdir -p images/ @-mkdir -p images/
@-mkdir -p
@-mkdir -p output/ @-mkdir -p output/
@-mkdir -p output/wordtagger @-mkdir -p output/wordtagger
@-mkdir -p ocr/ @-mkdir -p ocr/
@ -51,7 +52,13 @@ ocr/output.txt: ## ocr with tesseract
@echo $(basename $@ .txt) @echo $(basename $@ .txt)
tesseract $(@D)/list.txt $(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 #OUTPUT GENERATION RECIPES

Loading…
Cancel
Save