Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Computer Vision Projects with OpenCV and Python 3

You're reading from  Computer Vision Projects with OpenCV and Python 3

Product type Book
Published in Dec 2018
Publisher Packt
ISBN-13 9781789954555
Pages 182 pages
Edition 1st Edition
Languages
Author (1):
Matthew Rever Matthew Rever
Profile icon Matthew Rever

Table of Contents (9) Chapters

Preface Setting Up an Anaconda Environment Image Captioning with TensorFlow Reading License Plates with OpenCV Human Pose Estimation with TensorFlow Handwritten Digit Recognition with scikit-learn and TensorFlow Facial Feature Tracking and Classification with dlib Deep Learning Image Classification with TensorFlow Other Books You May Enjoy

Preface

In this book, you learn how to leverage the power of Python, OpenCV, and TensorFlow to solve problems in computer vision. Python is the ideal programming language for rapidly prototyping and developing production-grade code for image processing and computer vision, with its robust syntax and wealth of powerful libraries.

This book will be your practical guide to designing and developing production-grade computer vision projects that tackle real-world problems. You will learn how to set up Anaconda Python for the major OSes with cutting-edge third-party libraries for computer vision, and you will learn state-of-the-art techniques of classifying images and finding and identifying humans within videos. You will gain the expertise required to build your own computer vision projects using Python and its associated libraries by the end of this book.

Who this book is for

Python programmers and machine learning developers who wish to build exciting computer vision projects using the power of machine learning and OpenCV will find this book to be useful. The only prerequisite for this book is that you should have a sound knowledge of Python programming.

What this book covers

Chapter 1, Setting Up an Anaconda Environment, helps you download and install Python 3 and Anaconda along with their additional libraries, and also discusses the basic concepts of Jupyter Notebook.
Chapter 2, Image Captioning with TensorFlow, introduces you to image captioning using the Google Brain im2txt captioning model, which is a pre-defined model. We will also learn the process of retraining the model for our own customized images.
Chapter 3, Reading License Plates with OpenCV, introduces you to reading license plates using the plate utility functions. We learn the process of finding the possible candidates for our license plate characters, which is key to reading license plates.
Chapter 4, Human Pose Estimation with TensorFlow, introduces you to pose estimation using the DeeperCut algorithm and the pre-defined ArtTrack model. You will learn about single-person and multi-person pose detection, and you'll learn how to retrain the model for images and videos.

Chapter 5, Handwritten Digit Recognition with scikit-learn and TensorFlow, helps you acquire and process MNIST digit data. You will learn how to create and train a support vector machine, and also learn about digit classification using TensorFlow.
Chapter 6, Facial Feature Tracking and Classification with dlib, helps you detect facial features from images and videos, which helps us carry out facial recognition.
Chapter 7, Deep Learning Image Classification with TensorFlow, helps you learn image classification using a pre-trained Inception model. The chapter also teaches you how to retrain the model for customized images.

To get the most out of this book

Some programming experience in Python and its packages, such as TensorFlow, OpenCV, and dlib, will help you get the most out of this book.

A powerful GPU with CUDA support is required to retrain the models.

Download the example code files

You can download the example code files for this book from your account at www.packt.com. If you purchased this book elsewhere, you can visit www.packt.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packt.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Computer-Vision-Projects-with-OpenCV-and-Python-3. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The word_counts.txt file contains a vocabulary list with the number of counts from our trained model, which our image caption generator is going to need."

A block of code is set as follows:

testfile = 'test_images/dog.jpeg'

figure()
imshow(imread(testfile))

Any command-line input or output is written as follows:

conda install -c menpo dlib

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Click the Download button."

Warnings or important notes appear like this.
Tips and tricks appear like this.

Get in touch

Feedback from our readers is always welcome.

General feedback: If you have questions about any aspect of this book, mention the book title in the subject of your message and email us at customercare@packtpub.com.

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packt.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at copyright@packt.com with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packt.com.

lock icon The rest of the chapter is locked
Next Chapter arrow right
You have been reading a chapter from
Computer Vision Projects with OpenCV and Python 3
Published in: Dec 2018 Publisher: Packt ISBN-13: 9781789954555
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 $15.99/month. Cancel anytime}