Book Image

Computer Vision Projects with OpenCV and Python 3

By : Matthew Rever
Book Image

Computer Vision Projects with OpenCV and Python 3

By: Matthew Rever

Overview of this book

Python is the ideal programming language for rapidly prototyping and developing production-grade codes for image processing and Computer Vision with its robust syntax and wealth of powerful libraries. This book will help you design and develop production-grade Computer Vision projects tackling real-world problems. With the help of this book, you will learn how to set up Anaconda and Python for the major OSes with cutting-edge third-party libraries for Computer Vision. You'll learn state-of-the-art techniques for classifying images, finding and identifying human postures, and detecting faces within videos. You will use powerful machine learning tools such as OpenCV, Dlib, and TensorFlow to build exciting projects such as classifying handwritten digits, detecting facial features,and much more. The book also covers some advanced projects, such as reading text from license plates from real-world images using Google’s Tesseract software, and tracking human body poses using DeeperCut within TensorFlow. By the end of this book, you will have the expertise required to build your own Computer Vision projects using Python and its associated libraries.
Table of Contents (9 chapters)

Retraining with our own images

In this section, we're going to go beyond what we did with the pre-built classifier and use our own images with our own labels.

The first thing I should mention is that this isn't really training from scratch with deep learningthere are multiple layers and algorithms for training the whole thing, which are very time-consumingbut we can take advantage of something called transfer learning, where we take the first few layers that were trained with a very large number of images, as illustrated in the following diagram:

It's one of the caveats of deep learning that having a few hundred or a few thousand images isn't enough. You need hundreds of thousands or even millions of samples in order to get good results, and gathering that much data is very time-consuming. Also, running it on a personal computer, which I expect...