Pre Installed and Configured Rasbian Buster With OpenCV
If you have done any previous projects using OpenCV on raspberry pi, you might know the difficulties and the time it will take to install the OpenCV on it. It is a long process and will take around 3 hrs or some cases even up to 24hrs(my own experience) depending upon the pi model and data speed you’re getting. And sometimes your SD might get corrupted due to some unknown reasons and you will lose all your previously installed OpenCV and the projects.
So in this article, I will be showing how to set up raspberry pi OpenCV and how to run it
Things you need
- 16/32 GB Class 10 SD card (Class 10 SD card is highly recommended)
- Raspberry pi
- Card Reader
- Power supply for Raspberry pi
Before we begin a big shoutout to sponsor of this content Digitspace,
DigitSpace is an open-source hardware provider catering to future creators. They supply innovative, user-friendly open-source hardware products ranging from boards to corresponding components and kits for worldwide community of engineers, designers, inventors, and makers who love creating electronics.
Check out their website
Setup the SD card
1.Format your SD using SD Card Formatter application
2.Open etcher, select the extracted .img file (2020-03-19-raspbian-buster-opencv4.img) and press FLASH
Some info regarding Pi
|Raspbian Buster Version||February 2020|
If you need to SSH to your Pi then no need to add the ssh file I have already done that.
Just create a mobile hotspot with the above-mentioned SSID and password and check if your pi connects to it.
Use any tool like Advanced IP Scanner to find the IP address of the Pi
Once you got the IP address of your PI you can now easily SSH to it using terminal or cmd
I have installed OpenCV inside an virtual environment called cv4
workon cv4 python import cv2 cv2.__version__
pi@raspberrypi:~ $ workon cv4 (cv4) pi@raspberrypi:~ $ python Python 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 >>> cv2.__version__ '4.1.1'
If it returns 4.1.1 version, congratulations you have successfully installed and configured openCV on your raspberry pi.