万本电子书0元读

万本电子书0元读

顶部广告

Raspberry Pi 3 Cookbook for Python Programmers电子书

售       价:¥

10人正在读 | 0人评论 9.8

作       者:Tim Cox,Dr. Steven Lawrence Fernandes

出  版  社:Packt Publishing

出版时间:2018-04-30

字       数:52.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
A recipe-based guide to programming your Raspberry Pi 3 using Python About This Book : ? Leverage the power of Raspberry Pi 3 using Python programming ? Create 3D games, build neural network modules, and interface with your own circuits ? Packed with clear, step-by-step recipes to walk you through the capabilities of Raspberry Pi Who This Book Is For : This book is for anyone who wants to master the skills of Python programming using Raspberry Pi 3. Prior knowledge of Python will be an added advantage. What You Will Learn : ? Learn to set up and run Raspberry Pi 3 ? Build text classifiers and perform automation using Python ? Predict sentiments in words and create games and graphics ? Detect edges and contours in images ? Build human face detection and recognition system ? Use Python to drive hardware ? Sense and display real-world data ? Build a neural network module for optical character recognition ? Build movie recommendations system In Detail : Raspberry Pi 3 Cookbook for Python Programmers – Third Edition begins by guiding you through setting up Raspberry Pi 3, performing tasks using Python 3.6, and introducing the first steps to interface with electronics. As you work through each chapter, you will build your skills and apply them as you progress. You will learn how to build text classifiers, predict sentiments in words, develop applications using the popular Tkinter library, and create games by controlling graphics on your screen. You will harness the power of a built in graphics processor using Pi3D to generate your own high-quality 3D graphics and environments. You will understand how to connect Raspberry Pi’s hardware pins directly to control electronics, from switching on LEDs and responding to push buttons to driving motors and servos. Get to grips with monitoring sensors to gather real-life data, using it to control other devices, and viewing the results over the internet. You will apply what you have learned by creating your own Pi-Rover or Pi-Hexipod robots. You will also learn about sentiment analysis, face recognition techniques, and building neural network modules for optical character recognition. Finally, you will learn to build movie recommendations system on Raspberry Pi 3. Style and approach : Written in a cookbook style, this book contains a series of recipes on various topics. It is an easy-to-follow step-by-step guide with examples of feature integration suitable for any search application.
目录展开

Title Page

Copyright and Credits

Raspberry Pi 3 Cookbook for Python Programmers Third Edition

Dedication

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the authors

About the reviewers

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Sections

Getting ready

How to do it...

How it works...

There's more...

See also

Get in touch

Reviews

Getting Started with a Raspberry Pi 3 Computer

Introduction

Introducing Raspberry Pi

What's with the name?

Why Python?

Python 2 and Python 3

Which version of Python should you use?

The Raspberry Pi family – a brief history of Pi

Which Pi to choose?

Connecting to Raspberry Pi

Getting ready

How to do it...

There's more...

Secondary hardware connections

Using NOOBS to set up your Raspberry Pi SD card

Getting ready

How to do it...

How it works...

There's more...

Changing the default user password

Ensuring that you shut down safely

Preparing an SD card manually

Expanding the system to fit in your SD card

Accessing the RECOVERY/BOOT partition

Using the tools to back up your SD card in case of failure

Networking and connecting your Raspberry Pi to the internet via an Ethernet port, using a CAT6 Ethernet cable

Getting ready

How to do it...

There's more...

Using built-in Wi-Fi and Bluetooth on Raspberry Pi

Getting ready

How to do it...

Connecting to your Wi-Fi network

Connecting to Bluetooth devices

Configuring your network manually

Getting ready

How to do it...

There's more...

Networking directly to a laptop or computer

Getting ready

How to do it...

How it works...

There's more...

Direct network link

See also

Networking and connecting your Raspberry Pi to the internet via a USB Wi-Fi dongle

Getting ready

How to do it...

There's more...

Using USB wired network adapters

Connecting to the internet through a proxy server

Getting ready

How to do it...

How it works...

There's more...

Connecting remotely to Raspberry Pi over the network using VNC

Getting ready

How to do it...

There's more...

Connecting remotely to Raspberry Pi over the network using SSH (and X11 forwarding)

Getting ready

How to do it...

How it works...

There's more...

Running multiple programs with X11 forwarding

Running as a desktop with X11 forwarding

Running Pygame and Tkinter with X11 forwarding

Sharing the home folder of Raspberry Pi with SMB

Getting ready

How to do it...

Keeping Raspberry Pi up to date

Getting ready

How to do it...

There's more...

Dividing Text Data and Building Text Classifiers

Introduction

Building a text classifier

How to do it...

How it works...

See also

Pre-processing data using tokenization

How to do it...

Stemming text data

How to do it...

Dividing text using chunking

How to do it...

Building a bag-of-words model

How to do it...

Applications of text classifiers

Using Python for Automation and Productivity

Introduction

Using Tkinter to create graphical user interfaces

Getting ready

How to do it...

How it works...

Creating a graphical application – Start menu

Getting ready

How to do it...

How it works...

There's more...

Displaying photo information in an application

Getting ready

How to do it...

How it works...

There's more...

Organizing your photos automatically

Getting ready

How to do it...

How it works...

Predicting Sentiments in Words

Building a Naive Bayes classifier

How to do it...

See also

Logistic regression classifier

How to do it...

Splitting the dataset for training and testing

How to do it...

Evaluating the accuracy using cross-validation

How to do it...

Analyzing the sentiment of a sentence

How to do it...

Identifying patterns in text using topic modeling

How to do it...

Applications of sentiment analysis

Creating Games and Graphics

Introduction

Using IDLE3 to debug your programs

How to do it...

How it works...

Drawing lines using a mouse on Tkinter Canvas

Getting ready

How to do it...

How it works...

Creating a bat and ball game

Getting ready

How to do it...

How it works...

Creating an overhead scrolling game

Getting ready

How to do it...

How it works...

Detecting Edges and Contours in Images

Introduction

Loading, displaying, and saving images

How to do it...

Image flipping

How to do it...

Image scaling

How to do it...

Erosion and dilation

How to do it...

Image segmentation

How to do it...

Blurring and sharpening images

How to do it...

Detecting edges in images

How to do it...

How it works...

See also

Histogram equalization

How to do it…

Detecting corners in images

How to do it...

Creating 3D Graphics

Introduction

Getting started with 3D coordinates and vertices

Getting ready

How to do it...

How it works...

There's more...

Camera

Shaders

Lights

Textures

Creating and importing 3D models

Getting ready

How to do it...

How it works...

There's more...

Creating or loading your own objects

Changing the object's textures and .mtl files

Taking screenshots

Creating a 3D world to explore

Getting ready

How to do it...

How it works...

Building 3D maps and mazes

Getting ready

How to do it...

How it works...

There's more...

The Building module

Using SolidObjects to detect collisions

Building Face Detector and Face Recognition Applications

Introduction

Building a face detector application

How to do it...

Building a face recognition application

How to do it...

How it works...

See also

Applications of a face recognition system

Using Python to Drive Hardware

Introduction

Controlling an LED

Getting ready

How to do it...

How it works...

There's more...

Controlling the GPIO current

Responding to a button

Getting ready

Trying a speaker or headphone with Raspberry Pi

How to do it...

How it works...

There's more...

Safe voltages

Pull-up and pull-down resistor circuits

Protection resistors

A controlled shutdown button

Getting ready

How to do it...

How it works...

There's more...

Resetting and rebooting Raspberry Pi

Adding extra functions

The GPIO keypad input

Getting ready

How to do it...

How it works...

There's more...

Generating other key combinations

Emulating mouse events

Multiplexed color LEDs

Getting ready

How to do it...

How it works...

There's more...

Hardware multiplexing

Displaying random patterns

Mixing multiple colors

Writing messages using persistence of vision

Getting ready

How to do it...

How it works...

Sensing and Displaying Real-World Data

Introduction

Using devices with the I2C bus

Getting ready

How to do it...

How it works...

There's more...

Using multiple I2C devices

I2C bus and level shifting

Using just the PCF8591 chip or adding alternative sensors

Reading analog data using an analog-to-digital converter

Getting ready

How to do it...

How it works...

There's more...

Gathering analog data without hardware

Logging and plotting data

Getting ready

How to do it...

How it works...

There's more...

Plotting live data

Scaling and calibrating data

Extending the Raspberry Pi GPIO with an I/O expander

Getting ready

How to do it...

How it works...

There's more...

I/O expander voltages and limits

Using your own I/O expander module

Directly controlling an LCD alphanumeric display

Capturing data in an SQLite database

Getting ready

How to do it...

How it works...

There's more...

The CREATE TABLE command

The INSERT command

The SELECT command

The WHERE command

The UPDATE command

The DELETE command

The DROP command

Viewing data from your own webserver

Getting ready

How to do it...

How it works...

There's more...

Security

Using MySQL instead

Sensing and sending data to online services

Getting ready

How to do it...

How it works...

See also

Building Neural Network Modules for Optical Character Recognition

Introduction

Visualizing optical characters

How to do it...

Building an optical character recognizer using neural networks

How to do it...

How it works...

See also

Applications of an OCR system

Building Robots

Introduction

Building a Rover-Pi robot with forward driving motors

Getting ready

How to do it...

How it works...

There's more...

Darlington array circuits

Transistor and relay circuits

Tethered or untethered robots

Rover kits

Using advanced motor control

Getting ready

How to do it...

How it works...

There's more...

Motor speed control using PWM control

Using I/O expanders

Building a six-legged Pi-Bug robot

Getting ready

How to do it...

How it works...

Controlling the servos

The servo class

Learning to walk

The Pi-Bug code for walking

Controlling servos directly with ServoBlaster

Getting ready

How to do it...

How it works...

Using an infrared remote control with your Raspberry Pi

Getting ready

How to do it...

There's more...

Avoiding objects and obstacles

Getting ready

How to do it...

How it works...

There's more...

Ultrasonic reversing sensors

Getting a sense of direction

Getting ready

How to do it...

How it works...

There's more...

Calibrating the compass

Calculating the compass bearing

Saving the calibration

Driving the robot using the compass

Interfacing with Technology

Introduction

Automating your home with remotely controlled electrical sockets

Getting ready

How to do it...

How it works...

There's more...

Sending RF control signals directly

Extending the range of the RF transmitter

Determining the structure of the remote control codes

Using SPI to control an LED matrix

Getting ready

How to do it...

How it works...

There's more...

Daisy-chain SPI configuration

Communicating using a serial interface

Getting ready

How to do it...

How it works...

There's more...

Configuring a USB-to-RS232 device for Raspberry Pi

RS232 signals and connections

Using the GPIO built-in serial pins

The RS232 loopback

Controlling Raspberry Pi using Bluetooth

Getting ready

How to do it...

How it works...

There's more...

Configuring Bluetooth module settings

Controlling USB devices

Getting ready

How to do it...

How it works...

There's more...

Controlling similar missile-type devices

Robot arm

Taking USB control further

Can I Recommend a Movie for You?

Introduction

Computing the Euclidean distance score

Getting ready

How to do it...

How it works...

There's more...

See also

Computing a Pearson correlation score

How to do it...

How it works...

There's more...

See also

Finding similar users in the dataset

How to do it...

See also

Developing a movie recommendation module

How to do it...

See also

Applications of recommender systems

Hardware and Software List

Introduction

General component sources

General electronic component retailers

Makers, hobbyists, and Raspberry Pi specialists

The hardware list

Chapter 1

Chapters 2 – Chapter 7

Chapter 8

Chapter 9

Chapter 10

Chapter 11

Chapter 12

Chapter 13

Chapter 14

The software list

PC software utilities

Raspberry Pi packages

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

Chapter 7

Chapter 8

Chapter 9

Chapter 10

Chapter 11

Chapter 12

Chapter 13

Chapter 14

There's more...

APT commands

Pip Python package manager commands

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部