Book Image

Raspberry Pi cookbook for Python programmers

Book Image

Raspberry Pi cookbook for Python programmers

Overview of this book

Table of Contents (18 chapters)
Raspberry Pi Cookbook for Python Programmers
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Getting started with the Raspberry Pi camera module


We will start by installing and setting up the Raspberry Pi camera module, then we will create a small camera GUI that enables us to preview and take photos. The first GUI we will create is shown in the following image:

A basic camera GUI for the Raspberry Pi camera module

Getting ready

The Raspberry Pi camera module consists of a camera mounted on a small Printed Circuit Board (PCB) attached to a small ribbon cable. The ribbon cable can be attached directly to the CSI port of the Raspberry Pi board (marked as S5, the port is located between the USB and the HDMI port on the Raspberry Pi). The following image shows the Raspberry Pi camera module:

The Raspberry Pi camera module

The Raspberry Pi Foundation provides detailed instructions (and a video) on how to install the camera at http://www.raspberrypi.org/archives/3890; carry out the following steps:

  1. First, fit the camera as shown in the following image (ensure that you have disconnected the...