131 lines
4.9 KiB
Makefile
131 lines
4.9 KiB
Makefile
SHELL=/bin/bash
|
|
tessdataDir = /mingw64/share/
|
|
|
|
.PHONY: .PHONY
|
|
.PHONY:
|
|
all: gokyo
|
|
|
|
.PHONY: gokyo
|
|
gokyo: daiIkkyo daiNikyo
|
|
|
|
.PHONY: daiIkkyo
|
|
daiIkkyo: DeAshiBarai HizaGuruma SasaeTsuriKomiAshi UkiGoshi OSotoGari OGoshi KoSotoGari SeoiNage
|
|
|
|
.PHONY: daiNikyo
|
|
daiNikyo: OUchiGari KoUchiGari KoshiGuruma TsuriKomiGoshi OkuriAshiBarei TaiOtoshi HaraiGoshi UchiMata
|
|
|
|
.PHONY: DeAshiBarai
|
|
DeAshiBarai:
|
|
pdftoppm -f 39 -l 40 ressource/wolf_horst_judo_kampfsport_1968.pdf DeAshiBarai
|
|
tesseract -l deu DeAshiBarai-39.ppm DeAshiBarai-39 --psm 1
|
|
tesseract -l deu DeAshiBarai-40.ppm DeAshiBarai-40 --psm 1
|
|
# tesseract --tessdata-dir $(tessdataDir) -l deu DeAshiBarai-39.ppm DeAshiBarai-39 --psm 1
|
|
# tesseract --tessdata-dir $(tessdataDir) -l deu DeAshiBarai-40.ppm DeAshiBarai-40 --psm 1
|
|
|
|
.PHONY: HizaGuruma
|
|
HizaGuruma:
|
|
pdftoppm -f 40 -l 41 ressource/wolf_horst_judo_kampfsport_1968.pdf HizaGuruma
|
|
tesseract -l deu HizaGuruma-40.ppm HizaGuruma-40 --psm 1
|
|
tesseract -l deu HizaGuruma-41.ppm HizaGuruma-41 --psm 1
|
|
cat HizaGuruma-{40,41}.txt > HizaGuruma.txt
|
|
|
|
.PHONY: SasaeTsuriKomiAshi
|
|
SasaeTsuriKomiAshi:
|
|
pdftoppm -f 41 -l 42 ressource/wolf_horst_judo_kampfsport_1968.pdf SasaeTsuriKomiAshi
|
|
tesseract -l deu SasaeTsuriKomiAshi-41.ppm SasaeTsuriKomiAshi-41 --psm 1
|
|
tesseract -l deu SasaeTsuriKomiAshi-42.ppm SasaeTsuriKomiAshi-42 --psm 1
|
|
cat SasaeTsuriKomiAshi-{41,42}.txt > SasaeTsuriKomiAshi.txt
|
|
|
|
.PHONY: UkiGoshi
|
|
UkiGoshi:
|
|
pdftoppm -f 42 -l 44 ressource/wolf_horst_judo_kampfsport_1968.pdf UkiGoshi
|
|
tesseract -l deu UkiGoshi-42.ppm UkiGoshi-42 --psm 1
|
|
tesseract -l deu UkiGoshi-43.ppm UkiGoshi-43 --psm 1
|
|
tesseract -l deu UkiGoshi-44.ppm UkiGoshi-44 --psm 1
|
|
cat UkiGoshi-{42,43,44}.txt > UkiGoshi.txt
|
|
|
|
.PHONY: OSotoGari
|
|
OSotoGari:
|
|
pdftoppm -f 44 -l 45 ressource/wolf_horst_judo_kampfsport_1968.pdf OSotoGari
|
|
tesseract -l deu OSotoGari-44.ppm OSotoGari-44 --psm 1
|
|
tesseract -l deu OSotoGari-45.ppm OSotoGari-45 --psm 1
|
|
cat OSotoGari-{44,45}.txt > OSotoGari.txt
|
|
|
|
.PHONY: OGoshi
|
|
OGoshi:
|
|
pdftoppm -f 45 -l 46 ressource/wolf_horst_judo_kampfsport_1968.pdf OGoshi
|
|
tesseract -l deu OGoshi-45.ppm OGoshi-45 --psm 1
|
|
tesseract -l deu OGoshi-46.ppm OGoshi-46 --psm 1
|
|
cat OGoshi-{45,46}.txt > OGoshi.txt
|
|
|
|
.PHONY: KoSotoGari
|
|
KoSotoGari:
|
|
pdftoppm -f 46 -l 47 ressource/wolf_horst_judo_kampfsport_1968.pdf KoSotoGari
|
|
tesseract -l deu KoSotoGari-46.ppm KoSotoGari-46 --psm 1
|
|
tesseract -l deu KoSotoGari-47.ppm KoSotoGari-47 --psm 1
|
|
cat KoSotoGari-{46,47}.txt > KoSotoGari.txt
|
|
|
|
.PHONY: SeoiNage
|
|
SeoiNage:
|
|
pdftoppm -f 47 -l 48 ressource/wolf_horst_judo_kampfsport_1968.pdf SeoiNage
|
|
tesseract -l deu SeoiNage-47.ppm SeoiNage-47 --psm 1
|
|
tesseract -l deu SeoiNage-48.ppm SeoiNage-48 --psm 1
|
|
cat SeoiNage-{47,48}.txt > SeoiNage.txt
|
|
|
|
.PHONY: OUchiGari
|
|
OUchiGari:
|
|
pdftoppm -f 49 -l 50 ressource/wolf_horst_judo_kampfsport_1968.pdf OUchiGari
|
|
tesseract -l deu OUchiGari-49.ppm OUchiGari-49 --psm 1
|
|
tesseract -l deu OUchiGari-50.ppm OUchiGari-50 --psm 1
|
|
cat OUchiGari-{49,50}.txt > OUchiGari.txt
|
|
|
|
.PHONY: KoUchiGari
|
|
KoUchiGari:
|
|
pdftoppm -f 50 -l 52 ressource/wolf_horst_judo_kampfsport_1968.pdf KoUchiGari
|
|
tesseract -l deu KoUchiGari-50.ppm KoUchiGari-50 --psm 1
|
|
tesseract -l deu KoUchiGari-51.ppm KoUchiGari-51 --psm 1
|
|
tesseract -l deu KoUchiGari-52.ppm KoUchiGari-52 --psm 1
|
|
cat KoUchiGari-{50,51,52}.txt > KoUchiGari.txt
|
|
|
|
.PHONY: KoshiGuruma
|
|
KoshiGuruma:
|
|
pdftoppm -f 52 -l 53 ressource/wolf_horst_judo_kampfsport_1968.pdf KoshiGuruma
|
|
tesseract -l deu KoshiGuruma-52.ppm KoshiGuruma-52 --psm 1
|
|
tesseract -l deu KoshiGuruma-53.ppm KoshiGuruma-53 --psm 1
|
|
cat KoshiGuruma-{52,53}.txt > KoshiGuruma.txt
|
|
|
|
.PHONY: TsuriKomiGoshi
|
|
TsuriKomiGoshi:
|
|
pdftoppm -f 53 -l 54 ressource/wolf_horst_judo_kampfsport_1968.pdf TsuriKomiGoshi
|
|
tesseract -l deu TsuriKomiGoshi-53.ppm TsuriKomiGoshi-53 --psm 1
|
|
tesseract -l deu TsuriKomiGoshi-54.ppm TsuriKomiGoshi-54 --psm 1
|
|
cat TsuriKomiGoshi-{53,54}.txt > TsuriKomiGoshi.txt
|
|
|
|
.PHONY: OkuriAshiBarei
|
|
OkuriAshiBarei:
|
|
pdftoppm -f 54 -l 55 ressource/wolf_horst_judo_kampfsport_1968.pdf OkuriAshiBarei
|
|
tesseract -l deu OkuriAshiBarei-54.ppm OkuriAshiBarei-54 --psm 1
|
|
tesseract -l deu OkuriAshiBarei-55.ppm OkuriAshiBarei-55 --psm 1
|
|
cat OkuriAshiBarei-{54,55}.txt > OkuriAshiBarei.txt
|
|
|
|
.PHONY: TaiOtoshi
|
|
TaiOtoshi:
|
|
pdftoppm -f 55 -l 56 ressource/wolf_horst_judo_kampfsport_1968.pdf TaiOtoshi
|
|
tesseract -l deu TaiOtoshi-55.ppm TaiOtoshi-55 --psm 1
|
|
tesseract -l deu TaiOtoshi-56.ppm TaiOtoshi-56 --psm 1
|
|
cat TaiOtoshi-{55,56}.txt > TaiOtoshi.txt
|
|
|
|
.PHONY: HaraiGoshi
|
|
HaraiGoshi:
|
|
pdftoppm -f 56 -l 57 ressource/wolf_horst_judo_kampfsport_1968.pdf HaraiGoshi
|
|
tesseract -l deu HaraiGoshi-56.ppm HaraiGoshi-56 --psm 1
|
|
tesseract -l deu HaraiGoshi-57.ppm HaraiGoshi-57 --psm 1
|
|
cat HaraiGoshi-{56,57}.txt > HaraiGoshi.txt
|
|
|
|
.PHONY: UchiMata
|
|
UchiMata:
|
|
pdftoppm -f 57 -l 58 ressource/wolf_horst_judo_kampfsport_1968.pdf UchiMata
|
|
tesseract -l deu UchiMata-57.ppm UchiMata-57 --psm 1
|
|
tesseract -l deu UchiMata-58.ppm UchiMata-58 --psm 1
|
|
cat UchiMata-{57,58}.txt > UchiMata.txt
|