Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 1.23 KB

README.md

File metadata and controls

31 lines (28 loc) · 1.23 KB

About

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.

Usage

See the image Docker Hub page for information on how to use the image.

Build

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__)"

Credits

Some of the steps in this blog post is what I used to understand how to build and install OpenCV in Raspberry Pi.