small README + Makefile file changes to dependencies

master
Castro0o 7 years ago
parent 1fdc6b0f61
commit ab85a34326

@ -1,6 +1,6 @@
images=$(sort $(wildcard images/*.jpg)) images=$(sort $(wildcard images/*.jpg))
# @andre make wildcard so that it takes any image file but doesn't take the listimg.txt file # @andre make wildcard so that it takes any image file but doesn't take the listimg.txt file
images-tiff=$(sort $(wildcard images-tiff/*.jpg)) images-tiff=$(sort $(wildcard images-tiff/*.tiff))
output_ocr:=$(dir_ocr)/output.txt output_ocr:=$(dir_ocr)/output.txt
tmpfile:= $(shell mktemp) tmpfile:= $(shell mktemp)
space:= $(empty) $(empty) space:= $(empty) $(empty)
@ -93,12 +93,14 @@ carlandre: ocr/output.txt ## Alice: Creates visual poetry out of a text. Depende
.PHONY: carlandre .PHONY: carlandre
# cat $(@) > /dev/usb/lp0 # cat $(@) > /dev/usb/lp0
overunder: ocr/output.txt ## Alice: An interpreted language that translate simple weaving instructions and creates a weaving pattern on text. overunder: ocr/output.txt ## Alice: An interpreted language that translate simple weaving instructions and creates a weaving pattern on text.
@python3 src/overunder.py @python3 src/overunder.py
.PHONY: overunder .PHONY: overunder
erase: ## Natasha: Analyzes pages in order, erases least common words from view. Dependencies: PIL, html5lib, FPDF erase:hocrs ## Natasha: Analyzes pages in order, erases least common words from view. Dependencies: PIL, html5lib, FPDF
python3 src/erase_leastcommon.py python3 src/erase_leastcommon.py
@echo 'erase rule output: output/erase-replace/Erase.pdf'
replace: ## Natasha: Analyzes pages in order, replace least common words with most common words. Dependencies: PIL, html5lib, FPDF replace: ## Natasha: Analyzes pages in order, replace least common words with most common words. Dependencies: PIL, html5lib, FPDF
python3 src/replace_leastcommon.py python3 src/replace_leastcommon.py

@ -7,10 +7,22 @@ Software experiments for the OuNuPo bookscanner. Part of Special Issue #5
#Angeliki Diakrousi #Angeliki Diakrousi
# Install ## Install
`git clone https://git.xpub.nl/repos/OuNuPo-make.git` `git clone https://git.xpub.nl/repos/OuNuPo-make.git`
## General depencies
* Python3
* GNU make
* Python3 NLTK `how to install`
* NLTK English Corpus:
* run NLTK downloader `python -m nltk.downloader`
* select menu "Corpora"
* select "stopwords"
* "Dowload"
# Make commands # Make commands
## N+7 (example) Author ## N+7 (example) Author
@ -30,13 +42,18 @@ Description: Speech recognition feedback loops using the first sentence of a sca
run: `make ttssr-human-only` run: `make ttssr-human-only`
dependencies: dependencies:
*python 3.3 * python 3.3 -----> put in general dependencies (top)
*pocketsphinx * [pocketsphinx](https://github.com/bambocher/pocketsphinx-python) `sudo pip3 install pocketsphinx`
* SpeechRecognition 3.8.1 * SpeechRecognition 3.8.1
* PyAudio * PyAudio
install: install:
`https://pzwiki.wdka.nl/mediadesign/Speech_recognition` ``
## tash
python -m nltk.downloader ---> dependencies

Loading…
Cancel
Save