This image contains a compiled version of openCV for x86_64 architecture. For a raspberry-pi version look into https://hub.docker.com/r/calabozo/opencv-raspbian
The source code can be found here: https://github.com/calabozo/opencv/tree/master/x86
To execute simply run:
docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --device /dev/video0 opencv
This image includes a small example in /root/webcamtest.py to test the webcam. You can execute with the following command:
docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --device /dev/video0 opencv python /root/webcamtest.py
Note: To execute the webcamtest example you need to enable the display in your session. This can be done with xhost +
Content type
Image
Digest
Size
312.6 MB
Last updated
about 6 years ago
docker pull calabozo/opencv