A Docker image running Ubuntu:trusty with Python 2.7, the latest FFMPEG (built from source), and OpenCV 3 (built from source)
docker build -t <imageName> .
Docker Hub: https://registry.hub.docker.com/u/dkarchmervue/python27-opencv/
Source and example: https://github.com/ampervue/docker-python27-opencv
docker pull dkarchmervue/python27-opencv
docker run -ti dkarchmervue/python27-opencv bash
To demostrate how to use this image, see example/ where another Dockerfile is defined to demonstrate how to build OpenCV C++ code, and then access it via a VNC Client:
git clone https://[email protected]/ampervue/python27-opencv.git
cd example
docker build -t opencvtest .
docker run -it --rm -p 5901:5901 -e USER=root opencvtest
bash -c "vncserver :1 -geometry 1280x800 -depth 24 && tail -F /root/.vnc/*.log"
Connect to vnc://:5901 via VNC client.
On a terminal, call program with: opencvtest sample.jpg
and open generated Gray_Image.jpg