At that point you can power up and proceed to the next section.Īssuming that your OS is up to date, you’ll need one of the following for the remainder of this post: The former instructions take approximately 10 minutes to download via a torrent client and about 10 minutes to flash the SD card with Etcher or another tool. To upgrade your Raspberry Pi 3 to Raspbian Stretch, you may download it here and follow these upgrade instructions (or these for the NOOBS route which is recommended for beginners). If you don’t already have the Raspbian Stretch OS, you’ll need to upgrade your OS to take advantage of Raspbian Stretch’s new features. In this tutorial, I am going to assume that you already own a Raspberry Pi 3 B or the newer Raspberry Pi 3 B+ with Raspbian Stretch installed. It also allows us to grab the latest code - something that pip and apt-get don’t offer.įinally, we’ll test our OpenCV 4 install on our Raspberry Pi with a fun project. Compiling from source allows us to have full control over the compile and build.
Before you begin, be sure to check out the available install tutorials on my OpenCV installation guides page.įirst we’ll cover assumptions that go along with this tutorial.įrom there, we’ll walk through 7 steps to compile and install OpenCV 4 on your Raspberry Pi. Note: There are many install guides on my blog. OpenCV 4 has a goal of reducing bloat, adding optimizations, and updating the deep learning module. In this blog post, we’re going to install OpenCV 4 on your Raspberry Pi. Looking for the source code to this post? Jump Right To The Downloads Section Install OpenCV 4 on your Raspberry Pi