Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.05 KB

README.md

File metadata and controls

37 lines (23 loc) · 1.05 KB

docker-python27-opencv

A Docker image running Ubuntu:trusty with Python 2.7, the latest FFMPEG (built from source), and OpenCV 3 (built from source)

To Build

docker build -t <imageName> .

To pull and run from hub.docker.com

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

Example

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