Getting started with Raspberry Pi
Reference : [Link]
: [Link]
✓ About Raspberry Pi and requirements
✓ OS installation
✓ SSH (Secure Shell)
✓ Python Libraries
✓ What is OpenCV?
✓ How to install modules?
✓ OpenCV library installation
✓ Examples
Hardware Software
• Raspberry Pi • Raspbian OS
• 5V/2.5A Adaptor • SD card formatter
• Micro SD card (8GB) • Disk Imager
• SD card reader
• Monitor
• VGA to HDMI adaptor
• Keyboard
• Mouse
• Ethernet Cable
GPIO ➔ General Purpose Input/Output Pin
OS installation
• Format the SD card with SD card formatter.
• Write the OS image file into SD card with Disk Imager.
• Setting up the Raspberry Pi.
Controlling the Pi Remotely with SSH (Secure Shell)
• You can access the command line of a Raspberry Pi remotely from another computer or
device on the same network using SSH.
• Use VNC server for SSH.
✓ sudo apt-get update ✓ sudo nano /home/pi/.bashrc
✓ sudo apt-get upgrade ✓ Add “vncserver :1” to the last line
✓ sudo raspi-config
✓ sudo ifconfig
✓ sudo apt-get install tightvncserver
✓ vncserver :1
Python Libraries
✓ NumPy
✓ SciPy
✓ Matplotlib
✓ PIL and Pillow What is OpenCV?
✓ OpenCV
✓ SimpleCV The main goal of OpenCV is real-time image processing.
✓ Mahotas
✓ Scikit-learn
✓ Scikit-image
✓ Ilastik
✓ Pprocess
✓ h5Py
How to install libraries?
✓ Numpy - pip install numpy
✓ Matplotlib - sudo apt-get install python-matplotlib
✓ OpenCV
How to install OpenCV library?
✓ OpenCV itself takes approximately 4 hours to compile.
How to run the scripts?
[Link] example
1. Install [Link] module
• sudo apt-get update
• sudo apt-get install [Link] [Link]
• pip install [Link]
2. Import the module
3. Choose Board(port) or BCM (pin)
4. Setup input
5. Setup output