OCRwithOpenCV,Tesseract,andPython
Intro to OCR - 1st Edition (version 1.0)
Adrian Rosebrock, PhD
Abhishek Thanki
Sayak Paul
Jon Haasepy image s e a r c h
The contents of this book, unless otherwise indicated, are Copyright ©2020 Adrian
Rosebrock,. All rights reserved. Books like this are made possible by
the time invested by the authors. If you received this book and did not purchase it, please
consider making future books possible by buying a copy at
books-and-courses/
© 2020 PyImageSearch
Contents
Contents iii
Companion Website
Acronyms xiii
1 Introduction 1
1.1 Who This Book Is For
1.2 Do I Need to Know Computer Vision and OpenCV?
1.3 Do I Need to Know Deep Learning?
1.4 Book Organization
1.5 Summary
2 What Is Optical Character Recognition?
2.1 Chapter Learning Objectives
2.2 An Introduction to OCR
2.2.1 A Brief History of OCR
2.2.2 Applications of OCR
2.2.3 Orientation and Script Detection
2.2.4 The Importance of Pre-Processing and Post-Processing
2.3 Summary
3 Tools, Libraries, and Packages for OCR
3.1 Chapter Learning Objectives
3.2 OCR Tools and Libraries
3.2.1 Tesseract
3.2.2 Python
3.2.3 PyTesseract
3.2.4 OpenCV
iii
iv CONTENTS
3.2.5 Keras, TensorFlow, and scikit-learn
3.2.6 Cloud OCR APIs
3.3 Summary
4 Installing OCR Tools, Libraries, and Packages
4.1 Chapter Learning Objectives
4.2 OCR Development Environment Conguration
4.2.1 A Note on Install Instructions
4.2.2 Installing Tesseract
4.2.2.1 Installing Tesseract on macOS
4.2.2.2 Installing Tesseract on Ubuntu
4.2.2.3 Installing Tesseract on Windows
4.2.2.4 Installing Tesseract on Raspberry Pi OS
4.2.2.5 Verifying Your Tesseract Install
4.2.3 Creating a Python Virtual Environment for OCR
4.2.4 Installing OpenCV and PyTesseract
4.2.5 Installing Other Computer Vision, Deep Learning, and Machine Learn-
ing Libraries
4.2.6 Pre-Congured VM for OCR
4.3 Summary
5 Your First OCR Project with Tesseract
5.1 Chapter Learning Objectives
5.2 Getting Started with Tesseract
5.2.1 Project Structure
5.2.2 Basic OCR wi
OCR with OpenCV, Tesseract, and Python - Intro to OCR_Adrian Rosebrock.pdf