Added my wordtagger script. Use make wordtagger to execute it

master
jvdhorst 7 years ago
parent fbb72fcb4a
commit fc5900d312

@ -33,13 +33,16 @@ tesseract:
myscript: tesseract myscript: tesseract
cat output/plain.txt | python3 src/myscript.py > output/a-new-file.txt cat output/plain.txt | python3 src/myscript.py > output/a-new-file.txt
wordtagger: tesseract
cat output/plain.txt | python3 src/wordtagger.py > output/tagged-words.txt
visualization: $(images) $(tmpfile) #requires mplayer visualization: $(images) $(tmpfile) #requires mplayer
@echo $(tmpfile) @echo $(tmpfile)
for i in $(images); do \ for i in $(images); do \
cat $$i >> $(tmpfile); \ cat $$i >> $(tmpfile); \
done; done;
ifeq ($(OS),Darwin) ifeq ($(OS),Darwin)
cat $(tmpfile) | mplayer -sws 4 -zoom -vf dsize=720:720 -demuxer rawvideo -rawvideo w=56:h=64:i420:fps=25 -; cat $(tmpfile) | mplayer -sws 4 -zoom -vf dsize=720:720 -demuxer rawvideo -rawvideo w=56:h=64:i420:fps=25 -;
else else
cat $(tmpfile) | mplayer -vo x11 -sws 4 -zoom -vf dsize=720:720 -demuxer rawvideo -rawvideo w=50:h=50:i420:fps=25 -; cat $(tmpfile) | mplayer -vo x11 -sws 4 -zoom -vf dsize=720:720 -demuxer rawvideo -rawvideo w=50:h=50:i420:fps=25 -;

Loading…
Cancel
Save