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 cookbook for Python programmers

You're reading from   Raspberry Pi cookbook for Python programmers The Raspberry Pi Cookbook has over 50 tailor-made recipes for programmers to get the most out of Raspberry Pi using Python to unleash its huge potential.

Arrow left icon
Product type Paperback
Published in Apr 2014
Publisher
ISBN-13 9781849696623
Length 402 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (18) Chapters Close

Raspberry Pi Cookbook for Python Programmers
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with a Raspberry Pi Computer FREE CHAPTER 2. Starting with Python Strings, Files, and Menus 3. Using Python for Automation and Productivity 4. Creating Games and Graphics 5. Creating 3D Graphics 6. Using Python to Drive Hardware 7. Sense and Display Real-world Data 8. Creating Projects with the Raspberry Pi Camera Module 9. Building Robots 10. Interfacing with Technology Hardware and Software List Index

Making a QR code reader


You have probably seen QR codes in various places, and perhaps even used a few to pick up links from posters or adverts. However, they can be far more useful if you make your own. The following example discusses how we can use the Raspberry Pi to read QR codes and the hidden content (or even link to an audio file or video).

This could be used to create your own personalized Raspberry Pi QR code jukebox, perhaps as an aid for children to provide solutions to math problems or even to play an audio file of you reading your kid's favorite book as they follow along page by page. The following screenshot is an example of a QR code:

You can use QR codes to make magical self-reading books

Getting ready

This example requires a setup similar to the previous examples (except we won't need mencoder this time). We will need to install ZBar, which is a cross-platform QR code and barcode reader, and flite (a text-to-speech utility that we used in Chapter 6, Using Python to Drive Hardware...

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 R$50/month. Cancel anytime