The Git repo of an OpenCV Docker image , for Raspberry Pi 3 with Raspbian OS (Debian). The modules from OpenCV contrib are included as well. It is based on the resin.io python image.
See the image Docker Hub page for information on how to use the image.
If you prefer to build the image yourself (takes around 2 hours), you can do it as follows:
- Clone this repository into a Raspberry Pi 3 running Raspbian OS.
git clone git@github.com:mohaseeb/raspberrypi3-opencv-docker.git
cd raspberrypi3-opencv-docker/opencv-<version>
- Build the image by running:
docker build -t my_pi_opencv_img .
- And run it
docker run -it --rm \
--name my_opencv_app_run \
my_pi_opencv_img \
python -c "import cv2; print(cv2.__version__)"
Some of the steps in this blog post is what I used to understand how to build and install OpenCV in Raspberry Pi.