Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi By Example

You're reading from   Raspberry Pi By Example Start building amazing projects with the Raspberry Pi right out of the box

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher
ISBN-13 9781785285066
Length 294 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Arush Kakkar Arush Kakkar
Author Profile Icon Arush Kakkar
Arush Kakkar
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Introduction to Raspberry Pi and Python FREE CHAPTER 2. Minecraft Pi 3. Building Games with PyGame 4. Working with a Webcam and Pi Camera 5. Introduction to GPIO Programming 6. Creating Animated Movies with Raspberry Pi 7. Introduction to Computer Vision 8. Creating Your Own Motion Detection and Tracking System 9. Grove Sensors and the Raspberry Pi 10. Internet of Things with the Raspberry Pi 11. Build Your Own Supercomputer with Raspberry Pi 12. Advanced Networking with Raspberry Pi 13. Setting Up a Web Server on the Raspberry Pi 14. Network Programming in Python with the Pi A. Newer Raspberry Pi Models Index

Setting up Pi for Computer Vision


Make sure that you have a working, wired Internet connection with reasonable speed for this activity. Now, let's prepare our Pi for computer vision:

  1. Connect your Pi to the Internet through Ethernet or a Wi-Fi USB dongle.

  2. Run the following command to restart the networking service:

    sudo service networking restart
    
  3. Make sure that Raspberry Pi is connected to the Internet by typing in the following command:

    ping –c4 www.google.com
    

    If the command fails, then check the Internet connection with some other device and resolve the issue. After that, repeat the preceding steps again.

  4. Run the following commands in a sequence:

    sudo apt-get update
    sudo apt-get upgrade
    sudo rpi-update
    sudo reboot –h now
    
  5. After this, we will need to install a few necessary packages and dependencies for OpenCV. The following is the list of packages we need to install. You just need to connect your Pi to the Internet and type this in:

    sudo apt-get install <package-name> -y
    

    Here, <package...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime