Public Repository

Last pushed: 7 months ago
Short Description
Ubuntu Xenial 16.04 with OCR 3.0.2 from distro and required libs.
Full Description

#Dockerfile

FROM ubuntu:16.04
MAINTAINER phourigan@westbrite.com (Westbrite Technologies)

RUN apt-get update
RUN apt-get install -y build-essential apt-utils

Build from distro - Image Size 2GB

RUN apt-get install -y libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
RUN apt-get update && apt-get install -y python-dev python-numpy \
python3 python3-pip python3-dev python-tk libtbb2 libtbb-dev \
libjpeg-dev libjasper-dev libdc1394-22-dev \
python-opencv libopencv-dev libav-tools python-pycurl \
libatlas-base-dev gfortran webp qt5-default libvtk6-dev zlib1g-dev

RUN pip3 install numpy

RUN apt-get install -y python-pip
RUN pip install --upgrade pip
RUN apt-get install unzip

ADD distros/opencv/opencv-3.2.0.zip /opt/

RUN cd /opt && \
unzip -q opencv-3.2.0.zip && \
rm opencv-3.2.0.zip

RUN cd /opt/opencv-3.2.0

Alternative Make from Source - Image size 6GB

#RUN apt-get install -y cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev

#RUN apt-get update && apt-get install -y python-dev python-numpy \

#python3 python3-pip python3-dev libtbb2 libtbb-dev \

#libjpeg-dev libjasper-dev libdc1394-22-dev \

#python-opencv libopencv-dev libav-tools python-pycurl \

#libatlas-base-dev gfortran webp qt5-default libvtk6-dev zlib1g-dev

#RUN pip3 install numpy

#RUN apt-get install -y python-pip

#RUN pip install --upgrade pip

#RUN cd ~/ &&\

#git clone https://github.com/opencv/opencv.git &&\

#cd opencv && mkdir build && cd build && cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON .. && \

#make -j4 && make install && ldconfig

#Set the appropriate link

#RUN ln /dev/null /dev/raw1394

Docker Pull Command
Owner
hougibrite

Comments (0)