mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2024-12-26 03:44:19 +00:00
Added missing dependencies for ocropus.
This commit is contained in:
parent
aa48ea6ed2
commit
ce864e205a
@ -26,6 +26,8 @@ RUN apt-get update && \
|
||||
poppler-utils \
|
||||
python2.7 \
|
||||
python3.6 \
|
||||
python-pip \
|
||||
python-tk \
|
||||
tesseract-ocr \
|
||||
wget
|
||||
|
||||
@ -54,6 +56,7 @@ RUN wget -nv http://github.com/tesseract-ocr/tessdata_best/raw/master/deu.traine
|
||||
RUN git clone http://github.com/tmbdev/ocropy && \
|
||||
cd ocropy && \
|
||||
apt-get install -y --no-install-recommends $(cat PACKAGES) && \
|
||||
pip install -r requirements.txt && \
|
||||
wget -nv http://www.tmbdev.net/en-default.pyrnn.gz && \
|
||||
mv en-default.pyrnn.gz models/ && \
|
||||
python2.7 setup.py install && \
|
||||
|
@ -39,5 +39,5 @@ for input_file in input_files:
|
||||
output_file.write(' </p>\n')
|
||||
output_file.write(' </body>\n' +
|
||||
' </text>\n' +
|
||||
'</TEI>\n')
|
||||
'</TEI>')
|
||||
output_file.close()
|
Loading…
Reference in New Issue
Block a user