Docker image with OpenCV 3.4.1 and 4.0.0-pre, dlib, jupyterhub and other utilities installed.
224
Use:
docker run --device=/dev/video0:/dev/video0 -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -p 5000:5000 -p 8888:8888 -it spmallick/opencv-docker:opencv-3.4.1 /bin/bash
To use the docker image, use the following instructions:
For OpenCV-3.4.1:
docker pull vishwesh5/cv-docker:latest
docker run -it -p 8888:8888 -p 5000:5000 vishwesh5/cv-docker /bin/bash
For OpenCV-master branch:
docker pull vishwesh5/cv-docker:cv-4
docker run -it -p 8888:8888 -p 5000:5000 vishwesh5/cv-docker:cv-4 /bin/bash
For OpenCV-3.4.1 and Flask application for face recognition:
docker pull vishwesh5/cv-docker:withFlask
docker run -it -p 8888:8888 -p 5000:5000 vishwesh5/cv-docker:withFlask
To run Flask application for face recognition:
source activate OpenCV-3.4.1-py3
cd /home/jovyan/work/face-recognition-web-app
flask run --host=0.0.0.0
Open your web browser (Mozilla Firefox works but Google Chrome does NOT), browse to http://0.0.0.0:5000/demo.html and follow the given instructions.
To run jupyter-notebook:
jupyter-notebook
Open your web browser, browse to http://0.0.0.0:8888 and use the token present in the log.
To use Python environments:
source activate OpenCV-3.4.1-py2
ipython
import cv2
cv2.__version__
exit()
source deactivate
Similarly for Python 3.6,
source activate OpenCV-3.4.1-py3
ipython
import cv2
cv2.__version__
exit()
source deactivate
For OpenCV-master branch installation, replace OpenCV-3.4.1-py2 with OpenCV-master-py2 and OpenCV-3.4.1-py3 with OpenCV-master-py3.
The image also has dlib installed for both Python environments.
source activate OpenCV-3.4.1-py2
ipython
import dlib
dlib.__version__
exit()
source deactivate
Content type
Image
Digest
Size
6.4 GB
Last updated
about 8 years ago
docker pull vishwesh5/cv-docker