Raspberry Pi Computer Vision Programming
eBook - ePub

Raspberry Pi Computer Vision Programming

Design and implement computer vision applications with Raspberry Pi, OpenCV, and Python 3, 2nd Edition

Ashwin Pajankar

  1. 306 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Raspberry Pi Computer Vision Programming

Design and implement computer vision applications with Raspberry Pi, OpenCV, and Python 3, 2nd Edition

Ashwin Pajankar

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Perform a wide variety of computer vision tasks such as image processing and manipulation, feature and object detection, and image restoration to build real-life computer vision applications

Key Features

  • Explore the potential of computer vision with Raspberry Pi and Python programming
  • Perform computer vision tasks such as image processing and manipulation using OpenCV and Raspberry Pi
  • Discover easy-to-follow examples and screenshots to implement popular computer vision techniques and applications

Book Description

Raspberry Pi is one of the popular single-board computers of our generation. All the major image processing and computer vision algorithms and operations can be implemented easily with OpenCV on Raspberry Pi. This updated second edition is packed with cutting-edge examples and new topics, and covers the latest versions of key technologies such as Python 3, Raspberry Pi, and OpenCV. This book will equip you with the skills required to successfully design and implement your own OpenCV, Raspberry Pi, and Python-based computer vision projects.

At the start, you'll learn the basics of Python 3, and the fundamentals of single-board computers and NumPy. Next, you'll discover how to install OpenCV 4 for Python 3 on Raspberry Pi, before covering major techniques and algorithms in image processing, manipulation, and computer vision. By working through the steps in each chapter, you'll understand essential OpenCV features. Later sections will take you through creating graphical user interface (GUI) apps with GPIO and OpenCV. You'll also learn to use the new computer vision library, Mahotas, to perform various image processing operations. Finally, you'll explore the Jupyter Notebook and how to set up a Windows computer and Ubuntu for computer vision.

By the end of this book, you'll be able to confidently build and deploy computer vision apps.

What you will learn

  • Set up a Raspberry Pi for computer vision applications
  • Perform basic image processing with libraries such as NumPy, Matplotlib, and OpenCV
  • Demonstrate arithmetical, logical, and other operations on images
  • Work with a USB webcam and the Raspberry Pi Camera Module
  • Implement low-pass and high-pass filters and understand their applications in image processing
  • Cover advanced techniques such as histogram equalization and morphological transformations
  • Create GUI apps with Python 3 and OpenCV
  • Perform machine learning with K-means clustering and image quantization

Who this book is for

This book is for beginners as well as experienced Raspberry Pi and Python 3 enthusiasts who are looking to explore the amazing world of computer vision. Working knowledge of the Python 3 programming language is assumed.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Raspberry Pi Computer Vision Programming è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Raspberry Pi Computer Vision Programming di Ashwin Pajankar in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Ciencia de la computación e Medios digitales. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2020
ISBN
9781800201026

Chapter 1: Introduction to Computer Vision and the Raspberry Pi

OpenCV is a simple and powerful programming framework for computer vision. It is preferred by both novices and experts in the field of computer vision. We can easily learn computer vision by writing OpenCV programs using Python 3 as the programming language. The Raspberry Pi family of single-board computers uses Python as its preferred development language. Using a Raspberry Pi board and Python 3 for learning OpenCV programming is one of the best approaches that we can follow to commence our wonderful journey into the amazing field of computer vision programming. In this chapter, you will become familiar with all of the important concepts that you need in order to get started with the Raspberry Pi and computer vision. By the end of this chapter, you will be able to set up the Raspbian Operating System (OS) on various Raspberry Pi board models. You will also learn how to connect the boards to the internet.
In this chapter, we will cover the following topics:
  • Understanding computer vision
  • Single-board computers
  • The Raspberry Pi family of single-board computers
  • Setting up the Raspbian OS on a Raspberry Pi
  • Connecting various Pi board models to the internet with LAN or Wi-Fi
By the end of this chapter, you will be able to set up your own Raspberry Pi board.

Understanding computer vision

The field of computer vision is a combination of different fields, including (but not limited to) computer science, mathematics, and electrical engineering. It includes ways to capture, process, and analyze images and videos from the real world in order to assist in decision making. Computer vision means mimicking biological (that is, human and non-human) vision. The end goal of most computer vision systems is to extract useful information from still images and videos (including prerecorded videos and live feeds) for the purpose of decision making. Biological vision systems work in a similar fashion. Additionally, unlike biological vision, computer vision can also acquire and work with images from the visual spectrum that are not visible to biological entities, for example, infrared and depth images.
Computer vision also relates to the area of extracting information from captured images and videos. A computer vision system may accept various types of data, such as images, videos, and live video streams, as inputs to further process, analyze, and extract meaningful information for the purpose of making important decisions.
The fields of artificial intelligence, machine vision, and computer vision overlap and share many topics, such as image processing, pattern recognition, and machine learning, as depicted in the following diagram:
Figure 1.1 – The relationships between different scientific domains
Figure 1.1 – The relationships between different scientific domains
In order to work as a researcher in the area of computer vision, you need to have a solid background and understanding of mathematics. However, to write programs for computer vision using OpenCV and Python 3, you don't need to know a lot of mathematics. Note that, in this book, you will be learning all of the mathematical and theoretical concepts required to get started with image processing and computer vision.
The typical objectives of a computer vision system could be one or more of the following:
  • The recognition of objects, the classification of visual detection, and an analysis of motion
  • The reconstruction of scenes using images
  • Image denoising and restoration
Do not get stressed if you are unfamiliar with these key terms. We will explore and implement many of these concepts throughout our journey.

OpenCV

OpenCV (also known as Open Source Computer Vision) is an open source library for computer vision and machine learning. It has many functionalities for image processing and computer vision. It is a cross-platform library, and it works with many programming languages and OSes. It has a large collection of computer vision and machine learning-related functions. It also has several Graphical User Interface (GUI) and event handling features.
OpenCV is free for academic and commercial usage as it is under the Berkley Software Distribution (BSD) license. It is written with the C++ programming language. It has interfaces for most of the popular programming languages, including (but not limited to) C/C++, Python, and Java. It runs on a variety of OSes, including Windows, Android, Linux, macOS, and other Unix-like OSes. In this book, we will write computer vision-related programs with OpenCV and Python 3.
The library has more than 2,500 optimized algorithms for machine learning and computer vision tasks. It has a community of more than 47,000 computer vision professionals, and it has been downloaded more than 18 million times. OpenCV is extensively used in academics for teaching, research organizations, government organizations, and various industry segments. Reputed able organizations such as Google, Yahoo, Microsoft, Intel, IBM, S...

Indice dei contenuti

  1. Raspberry Pi Computer Vision Programming
  2. Second Edition
  3. Preface
  4. Chapter 1: Introduction to Computer Vision and the Raspberry Pi
  5. Chapter 2: Preparing the Raspberry Pi for Computer Vision
  6. Chapter 3: Introduction to Python Programming
  7. Chapter 4: Getting Started with Computer Vision
  8. Chapter 5: Basics of Image Processing
  9. Chapter 6: Colorspaces, Transformations, and Thresholding
  10. Chapter 7: Let's Make Some Noise
  11. Chapter 8: High-Pass Filters and Feature Detection
  12. Chapter 9: Image Restoration, Segmentation, and Depth Maps
  13. Chapter 10: Histograms, Contours, and Morphological Transformations
  14. Chapter 11: Real-Life Applications of Computer Vision
  15. Chapter 12: Working with Mahotas and Jupyter
  16. Chapter 13: Appendix
  17. Other Books You May Enjoy
Stili delle citazioni per Raspberry Pi Computer Vision Programming

APA 6 Citation

Pajankar, A. (2020). Raspberry Pi Computer Vision Programming (2nd ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/2806848/raspberry-pi-computer-vision-programming-design-and-implement-computer-vision-applications-with-raspberry-pi-opencv-and-python-3-2nd-edition-pdf (Original work published 2020)

Chicago Citation

Pajankar, Ashwin. (2020) 2020. Raspberry Pi Computer Vision Programming. 2nd ed. Packt Publishing. https://www.perlego.com/book/2806848/raspberry-pi-computer-vision-programming-design-and-implement-computer-vision-applications-with-raspberry-pi-opencv-and-python-3-2nd-edition-pdf.

Harvard Citation

Pajankar, A. (2020) Raspberry Pi Computer Vision Programming. 2nd edn. Packt Publishing. Available at: https://www.perlego.com/book/2806848/raspberry-pi-computer-vision-programming-design-and-implement-computer-vision-applications-with-raspberry-pi-opencv-and-python-3-2nd-edition-pdf (Accessed: 15 October 2022).

MLA 7 Citation

Pajankar, Ashwin. Raspberry Pi Computer Vision Programming. 2nd ed. Packt Publishing, 2020. Web. 15 Oct. 2022.