├── LICENSE └── Dockerfile /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Fabio Oliveira Costa 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | MAINTAINER Fabio Oliveira 3 | #Python and openCv dependencies/Requirements 4 | RUN apt-get -y update && \ 5 | apt-get upgrade -y && \ 6 | apt-get install -y --force-yes build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev \ 7 | libavformat-dev libswscale-dev libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev \ 8 | libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev \ 9 | libatlas-base-dev gfortran python3-tk python3-numpy python3.4-dev wget 10 | 11 | ENV CV_VERSION "3.1.0" 12 | 13 | #Pip 14 | RUN wget https://bootstrap.pypa.io/get-pip.py && \ 15 | sudo python3 get-pip.py 16 | 17 | #Installing open cv from source 18 | RUN cd ~/ && git clone https://github.com/Itseez/opencv.git && cd opencv && git checkout $(CV_VERSION) 19 | RUN cd ~/ && git clone https://github.com/Itseez/opencv_contrib.git && cd opencv_contrib && git checkout $(CV_VERSION) 20 | RUN cd ~/opencv && mkdir build && cd build && \ 21 | cmake -D CMAKE_BUILD_TYPE=RELEASE \ 22 | -D CMAKE_INSTALL_PREFIX=/usr/local \ 23 | -D INSTALL_C_EXAMPLES=OFF \ 24 | -D INSTALL_PYTHON_EXAMPLES=ON \ 25 | -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ 26 | -D BUILD_opencv_python2=OFF \ 27 | -D BUILD_EXAMPLES=ON .. && \ 28 | make -j $(nproc) && make install && ldconfig 29 | --------------------------------------------------------------------------------