fbpx

How to Set Up Raspberry Pi for Computer Vision

This blog post was originally published at Xailient’s website. It is reprinted here with the permission of Xailient.

In this post, I will show you how to set up a Raspberry Pi for computer vision.

The Raspberry Pi is a series of low-cost, single-board computers, that are as small as your credit card. They have been very popular amongst hobbyists and makers around the world since the first version came out in 2012. That same year Raspberry Pi won T3’s Innovation of the Year award.

Around 30 million Raspberry Pis were sold by the end of the year 2019.
— The Inquirer

In eight years, the Raspberry Pi has gone through a lot of iterations and improvements. Below is a table showing different models of Raspberry Pi that have been released.


Generations of released Raspberry Pi Models

Projects Using Raspberry Pi

Here is a list of some interesting projects that use Raspberry Pi, to give you some ideas on how people are using it:

In this post, I will show you how to set up your Raspberry Pi 3B+ model so that you can start using it to create your own projects.


Raspberry Pi 3B+

Raspberry Pi 3B+ Specifications

Raspberry Pi 3B+ is the final version of the Raspberry Pi 3 range.

  • Processor: Broadcom BCM2837B0, Cortex-A53 64-bit SoC @ 1.4GHz
  • Memory: 1GB LPDDR2 SDRAM
  • Networking: Gigabit Ethernet over USB 2.0 (maximum throughput 300 Mbps), 2.4GHz and 5GHz IEEE 802.11.b/g/n/ac wireless LAN
  • Bluetooth: Bluetooth 4.2, Bluetooth Low Energy (BLE)
  • GPU: Broadcom Videocore-IV
  • Storage: Micro-SD
  • GPIO: 40-pin GPIO header, populated
  • Ports: HDMI, 3.5mm analogue audio-video jack, 4x USB 2.0, Ethernet, Camera Serial Interface (CSI), Display Serial Interface (DSI)
  • Dimensions: 82mm x 56mm x 19.5mm, 50g
  • Operating temperature: 0–50°C
  • Production Lifetime: will remain in production until at least January 2023

Things You Will Need:

  • Raspberry Pi 3B+
  • SD card
  • SD card reader
  • Ethernet Cable

Operating System You Will Need to Download:

Software that You Will Need to Download:

  • Etcher: Etcher is a free and open-source utility used for writing image files such as .iso and .img onto storage media to create live SD cards and USB flash drives.

  • VNC viewer: VNC viewer is software that allows remote access and control of a device that has VNC server enabled.

Steps to Set Up Your Raspberry Pi for Computer Vision:

  1. Insert the SD card into your PC/laptop using the SD card reader.
  2. Format the SD card.
  3. Use Etcher software to burn the Raspbian Buster image file to the SD card.


Select image to burn in Etcher


Select target to burn the image


Flash image

  1. Now from remote access, connect it to wifi so that you can access it without having to connect it to the PC using an ethernet cable.


Add ssh file to root directory of SD card

  1. Eject the SD card from the PC/laptop, insert it into the Raspberry Pi, and turn the Raspberry Pi on by connecting it to power.
  2. Connect the Raspberry Pi to the PC/laptop using an ethernet cable.


Raspberry Pi 3B+ with ethernet cable and power cable connected

  1. SSH into the Pi from your PC using terminal. Enter the following command:

  1. You will be prompted to enter a password. Enter the default password (raspberry).

  1. Now enable vncserver on the Raspberry Pi using the following command:

  1. From your PC, open VNC viewer and add the IP address of the Raspberry Pi to remotely connect to it.

  1. Now from remote access, connect it to wifi so that you can access it without having to connect it to the PC using an ethernet cable.

All done! You now know how to set up a Raspberry Pi for computer vision, and your Raspberry Pi 3B+ is ready to be used.


Looking to implement real-time face detection on a Raspberry Pi? Check out this post.

Looking to implement real-time face tracking on a Raspberry Pi? Check out this post.

Sabina Pokhrel
Customer Success AI Engineer, Xailient

Here you’ll find a wealth of practical technical insights and expert advice to help you bring AI and visual intelligence into your products without flying blind.

Contact

Address

1646 N. California Blvd.,
Suite 360
Walnut Creek, CA 94596 USA

Phone
Phone: +1 (925) 954-1411
Scroll to Top