Pre Installed and Configured Rasbian Buster With OpenCV

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

Software

Hardware


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

See Type as File
After renaming Disc Image File

2.Open etcher, select the extracted .img file (2020-03-19-raspbian-buster-opencv4.img) and press FLASH


Some info regarding Pi

Raspbian Buster VersionFebruary 2020
Release date2020-02-13
OpenCV Version4.1.1
Software Version
UsernamePi
Password9446568032
Login credentials
SSIDMG
Passwordconnectwithus
Wifi Credentials

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.

Leave a Reply

Your email address will not be published. Required fields are marked *