OCRopus docker镜像 - wanghaisheng/awesome-ocr GitHub Wiki

A small Docker built for the OCRopus OCR system. https://github.com/tmbdev/docker-ocropus

#FROM registry.mirrors.aliyuncs.com/max/ubuntu:14.04

From ubuntu:14.04
MAINTAINER Wanghaisheng <[email protected]>
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -qq update
RUN apt-get -qq dist-upgrade
RUN apt-get -qqy install build-essential g++ gdb swig2.0 mercurial scons
RUN apt-get -qqy install curl python-scipy python-matplotlib python-tables firefox imagemagick python-opencv python-bs4 git
RUN apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*

RUN git clone https://github.com/tmbdev/ocropy.git
RUN (cd ocropy/models && curl -O http://www.tmbdev.net/en-default.pyrnn.gz)
RUN (cd ocropy && sudo python setup.py install)
#ADD ocrotrain.sh ocropy/ocrotrain.sh

#VOLUME /work
#ADD test.png /work
#WORKDIR /work
RUN cd /ocropy  && mkdir pic
ADD pic /ocropy/pic
WORKDIR /ocropy