Bleeding edge docker container for CPU only useage. For running opencv / python in docker with access to web cam and display of the host computer (Ubuntu). Since Tensorflow requires GPU for training, this setup only allows for inference. Not tested on windows or Mac.
docker pull randhawp/opencv-python:latest
sudo docker volume create my-vol
sudo cp dockercam.py /var/lib/volumes/my-vol/_data
xhost +
sudo docker run -it -v my-vol:/home --device=/dev/video0:/dev/video0 -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --name testbench randhawp/opencv-python bash
To upgrade just do a docker pull randhawp/opencv-python:latest
Content type
Image
Digest
Size
3.6 GB
Last updated
over 6 years ago
docker pull randhawp/opencv-python