Skip to content

Docker images

Andrews Cordolino Sobral edited this page Jul 23, 2022 · 7 revisions

1. Dockerfiles

The new docker files are available at https://github.com/andrewssobral/docker/tree/master/bgslibrary

2. Docker images

The docker images are available at https://hub.docker.com/r/andrewssobral/bgslibrary/

3. Using pre-built docker images

3.1 - BGSLibrary + OpenCV 3.4.7 + Python Wrapper + QT Gui + Examples

Dockerfile: https://github.com/andrewssobral/docker/blob/master/bgslibrary/opencv_3.4.7py38/Dockerfile

docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY andrewssobral/bgslibrary:opencv_3.4.7py38 bash

3.2 - BGSLibrary + OpenCV 3.4.16 + Python Wrapper + QT Gui + Examples

Dockerfile: https://github.com/andrewssobral/docker/blob/master/bgslibrary/opencv_3.4.16py38/Dockerfile

docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY andrewssobral/bgslibrary:opencv_3.4.16py38 bash

3.3 - BGSLibrary + OpenCV 4.6.0 + Python Wrapper + QT Gui + Examples

Dockerfile: https://github.com/andrewssobral/docker/blob/master/bgslibrary/opencv_4.6.0py38/Dockerfile

docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY andrewssobral/bgslibrary:opencv_4.6.0py38 bash

!!! Deprecated !!!

Video tutorial

Compiling BGSLibrary with Python support on Docker (Windows)

Docker images

The docker images are available at https://hub.docker.com/r/andrewssobral/bgslibrary/

Older images

Docker images for BGSLibrary with OpenCV 2.4.13 and OpenCV 3.1.0.

How to run

  • Pull the latest image: docker pull andrewssobral/bgslibrary_opencv3

  • Start the container: docker run -it -p 5901:5901 andrewssobral/bgslibrary_opencv3 bash

  • Start VNC: /usr/bin/vncserver :1 -geometry 1280x800 -depth 24 && tail -f /root/.vnc/*:1.log

  • VNC password: password

  • Note: if you want to kill VNC: vncserver -kill :1

Enjoy it! ;-)