In this project we are going to install OpenCV on the Raspberry Pi. OpenCV is an open source computer vision and machine learning library. OpenCV contains over 2500 algorithms for facial recognition, object detection and much more.
In this manual we show three possible installations:
- The basic installation
- The manual, complete installation
- The automatic, complete installation
This manual covers:
- Level - Intermediate / Advanced 75%
- Duration - 2+ hours 75%
- Costs - € 129,64 exc. monitor 55%
Step 1: Requirements
Product: | Quantity: | Price: | |
1 | Raspberry Pi 4B (minimum 4GB RAM) | 1 | €59,89 |
2 | Raspberry Pi 4B housing (active cooling recommended) | 1 | €16,95 |
3 | Raspberry Pi 4B power supply | 1 | €9,95 |
4 | Micro SD card (at least 32GB) | 1 | €15,45 |
5 | Mouse & Keyboard | 1 | €17,95 |
6 | Micro HDMI -> HDMI cable | 1 | €9,45 |
7 | Monitor | 1 | |
Total | €129,64 |
Step 2: preparation
This project assumes you know how to Raspberry Pi OS (32-bit) must install on you Raspberry Pi, that without explanation you Raspberry Pi can connect to a monitor, mouse and keyboard and that you can configure an internet connection yourself. When you're ready. Then open the terminal and choose one of the following installations:
- Basic installation: This installation is made for the beginner. This is a fairly simple process suitable for most users.
- Manual full installation: This installation is a lot more difficult, but it includes every part of OpenCV. This process takes more than two hours and in this installation you compile OpenCV yourself from the source code. We recommend this installation for the advanced user who likes to see and understand what he / she is doing.
- Automatic, complete installation: This installation is a version of the complete installation automated by us. It contains the same content as the manual version. This process also takes more than two hours. We recommend this choice for the advanced user who wants to run a simple installation and then wants to have all options available.
Step 3a: basic installation
Here we install the basic version of OpenCV. This process will take anywhere from 15 to 30 minutes. Below you can see the steps with the code that is in the Raspberry Pi OS terminal will be executed.
Step 3b: complete manual installation
Here we install the full version of OpenCV. This process will take above two hours. Below you can see the steps with the code that is in the Raspberry Pi OS terminal will be executed.
Step 3c: complete, automatic installation
Here we install the full version of OpenCV. This process will take above two hours. Below you can see the steps with the code that is in the Raspberry Pi OS terminal will be executed.