
Some additional instructions for people newly starting with Docker: Libatlas-base-dev gfortran webp qt5-default libvtk6-dev zlib1g-devĬd 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. Python-opencv libopencv-dev libav-tools python-pycurl \ Libjpeg-dev libjasper-dev libdc1394-22-dev \ Python3 python3-pip python3-dev libtbb2 libtbb-dev \ RUN apt-get update & apt-get install -y python-dev python-numpy \ RUN apt-get install -y cmake git libgtk2.0-dev pkg-config libavcodec-dev \ RUN apt-get install -y build-essential apt-utils Here's the Dockerfile (provided in the same dockerhub repo mentioned above) that will install opencv for both python2 and python3 on Ubuntu 16.04 and also sets the appropriate raw1394 link.

You can pull it usingĭocker pull chennavarri/ubuntu_opencv_python Here's an image that is built on Ubuntu 16.04 with Python2 + Python3 + OpenCV.

RUN pip install -no-cache-dir -r requirements.txtįixed with a slightly different set-up FROM python:2.7

D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ # Install Open CV - Warning, this takes absolutely foreverĬd ~/opencv & mkdir -p build & cd build & \ RUN apt-get update & apt-get install -y \ ImportError: No module named cv2 when I attempt to run the application. I've tried several different ways, but I keep getting. I'm attempting to Dockerise a Python application, which depends on OpenCV.
