E-Book, Englisch, 138 Seiten
Pajankar Raspberry Pi Image Processing Programming
1. ed
ISBN: 978-1-4842-2731-2
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
Develop Real-Life Examples with Python, Pillow, and SciPy
E-Book, Englisch, 138 Seiten
ISBN: 978-1-4842-2731-2
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
Write your own Digital Image Processing programs with the use of pillow, scipy.ndimage, and matplotlib in Python 3 with Raspberry Pi 3 as the hardware platform. This concise quick-start guide provides working code examples and exercises. Learn how to interface Raspberry Pi with various image sensors.
What You'll Learn
•Understand Raspberry Pi concepts and setup•Understand digital image processing concepts•Study pillow, the friendly PIL fork•Explore scipy.ndimage and matplotlib•Master use of the Pi camera and webcam
Who This Book Is For
Raspberry Pi and IoT enthusiasts, digital image processing enthusiasts, Python and Open Source enthusiasts and professionals
Ashwin Pajankar is a Programmer, a Maker, an Author, a Youtuber, and an Educator with more than 10 years' experience in software design, development, testing, and automation. He graduated from the coveted IIIT Hyderabad, earning an M.Tech in computer science and engineering. He holds multiple professional certifications from Oracle, IBM, Teradata, and ISTQB in development, databases, and testing. He has won several awards in college through outreach initiatives, at work for technical achievements, and community service through corporate social responsibility programs.
Autoren/Hrsg.
Weitere Infos & Material
1;Contents at a Glance;4
2;Contents;5
3;About the Author;10
4;About the Technical Reviewer;11
5;Acknowledgments;13
6;Introduction;14
7;Chapter 1: Introduction to Single Board Computers and Raspberry Pi;17
7.1;Single Board Computers (SBCs);17
7.1.1;Differences Between SBCs and Regular Computers;18
7.1.2;System on Chips (SoCs);18
7.1.2.1;SoC versus Regular CPU;19
7.1.3;History of SBCs;19
7.1.4;SBC Families;19
7.2;The Raspberry Pi;20
7.3;Raspberry Pi Setup;21
7.3.1;Required Hardware;22
7.3.1.1;Raspberry Pi;22
7.3.1.2;Computer;22
7.3.1.3;I/O Devices;22
7.3.1.4;microSD Card;22
7.3.1.5;Power Supply;23
7.3.1.6;Card Reader;23
7.3.1.7;Monitor;24
7.3.2;Preparation of the microSD Card for Raspberry Pi;25
7.3.3;Download the Required Free Software;26
7.3.3.1;Download Accelerator Plus;26
7.3.3.2;Win32 Disk Imager;26
7.3.3.3;WinZip or WinRaR;26
7.3.3.4;Download and Extract the Raspbian OS Image;26
7.3.4;Writing the Raspbian OS Image to the microSD Card;26
7.3.5;Altering the Contents of the config.txt File for a VGA Monitor;28
7.3.6;Booting Up the Pi;29
7.3.7;Configuring the Pi;31
7.4;The Raspbian OS;34
7.5;The config.txt File;34
7.6;Connecting the Raspberry Pi to a Network and to the Internet;35
7.6.1;WiFi;35
7.6.2;Ethernet;37
7.6.2.1;Static IP Address;37
7.6.2.2;Dynamic IP Address;38
7.7;Updating the Pi;38
7.7.1;Updating the Firmware;38
7.7.2;Updating and Upgrading Raspbian;38
7.7.3;Updating raspi-config;39
7.8;Shutting Down and Restarting Pi;40
7.9;Conclusion;40
8;Chapter 2: Introduction to Python and Digital Image Processing;41
8.1;A History of Python;41
8.2;Features of Python;42
8.2.1;Simple;42
8.2.2;Easy to Learn;43
8.2.3;Easy to Read;43
8.2.4;Easy to Maintain;43
8.2.5;Open Source;43
8.2.6;High-Level Language;43
8.2.7;Portable;43
8.2.8;Interpreted;44
8.2.9;Object-Oriented;44
8.2.10;Extensible;44
8.2.11;Extensive Libraries;44
8.2.12;Robust;44
8.2.13;Rapid Prototyping;45
8.2.14;Memory Management;45
8.2.15;Powerful;45
8.2.16;Community Support;45
8.3;Python 3;45
8.3.1;The Differences Between Python 2 and Python 3;46
8.3.2;Why Use Python 3;47
8.4;Python 2 and Python 3 on Raspbian;47
8.5;Running a Python Program and Python Modes;47
8.5.1;Interactive Mode;48
8.5.2;Normal Mode;48
8.6;IDEs for Python;49
8.6.1;IDLE;49
8.6.2;Geany;50
8.7;Introduction to Digital Image Processing;52
8.7.1;Signal Processing;52
8.7.2;Image Processing;53
8.7.2.1;Analog Image Processing;53
8.7.2.2;Digital Image Processing;53
8.7.3;Using Raspberry Pi and Python for Digital Image Processing (DIP);54
8.8;Conclusion;55
9;Chapter 3: Getting Started;56
9.1;Image Sources;56
9.1.1;Using the Webcam;57
9.1.2;The Pi Camera Module;59
9.2;Using Python 3 for Digital Image Processing;61
9.2.1;Working with Images;62
9.2.1.1;Image Properties;64
9.3;Conclusion;65
10;Chapter 4: Basic Operations on Images;66
10.1;Image Module;66
10.1.1;Splitting and Merging Image Channels;66
10.1.2;Image Mode Conversion;68
10.1.3;Image Blending;68
10.1.4;Resizing an Image;70
10.1.5;Rotating an Image;71
10.1.6;Crop and Paste Operations;72
10.1.7;Copying and Saving Images to a File;73
10.1.8;Knowing the Value of a Particular Pixel;73
10.2;ImageChops Module;74
10.3;ImageOps Module;76
10.4;Conclusion;78
11;Chapter 5: Advanced Operations on Images;79
11.1;The ImageFilter Module;79
11.2;The ImageEnhance Module;88
11.3;Color Quantization;90
11.4;Histograms and Equalization;91
11.4.1;Histogram Equalization;92
11.5;Conclusion;93
12;Chapter 6: Introduction to Scientific Python;94
12.1;The Scientific Python Stack;94
12.1.1;Installing the SciPy Stack;95
12.1.2;A Simple Program;95
12.1.3;Simple Image Processing;96
12.1.4;Introduction to NumPy;97
12.1.5;Matplotlib;99
12.2;Image Channels;102
12.3;Conversion Between PIL Image Objects and NumPy ndarrays;104
12.4;Conclusion;105
13;Chapter 7: Transformations and Measurements;106
13.1;Transformations;106
13.2;Measurements;108
13.3;Conclusion;111
14;Chapter 8: Filters and Their Application;112
14.1;Filters;112
14.1.1;Low-Pass Filters;113
14.1.1.1;Low-Pass Filters for Blurring;113
14.1.1.2;Using Low-Pass Filters for Noise Removal;115
14.1.2;High-Pass Filters;118
14.1.3;Fourier Filters;121
14.2;Conclusion;123
15;Chapter 9: Morphology, Thresholding, and Segmentation;124
15.1;Distance Transforms;124
15.2;Morphology and Morphological Operations;126
15.2.1;Structuring Element;126
15.2.2;Various Morphological Operations;126
15.2.3;Grayscale Morphological Operations;128
15.3;Thresholding and Segmentation;130
15.4;Conclusion;134
15.5;Book Summary;134
15.6;What’s Next;134
16;Index;135




