|
|
@ -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
|
|
|
|
|
|
|
|
|
|
|
|