
Mastering Computer Vision with TensorFlow 2.x
Build advanced computer vision applications using machine learning and deep learning techniques
- 430 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Mastering Computer Vision with TensorFlow 2.x
Build advanced computer vision applications using machine learning and deep learning techniques
About this book
Apply neural network architectures to build state-of-the-art computer vision applications using the Python programming language
Key Features
- Gain a fundamental understanding of advanced computer vision and neural network models in use today
- Cover tasks such as low-level vision, image classification, and object detection
- Develop deep learning models on cloud platforms and optimize them using TensorFlow Lite and the OpenVINO toolkit
Book Description
Computer vision allows machines to gain human-level understanding to visualize, process, and analyze images and videos. This book focuses on using TensorFlow to help you learn advanced computer vision tasks such as image acquisition, processing, and analysis. You'll start with the key principles of computer vision and deep learning to build a solid foundation, before covering neural network architectures and understanding how they work rather than using them as a black box. Next, you'll explore architectures such as VGG, ResNet, Inception, R-CNN, SSD, YOLO, and MobileNet. As you advance, you'll learn to use visual search methods using transfer learning. You'll also cover advanced computer vision concepts such as semantic segmentation, image inpainting with GAN's, object tracking, video segmentation, and action recognition. Later, the book focuses on how machine learning and deep learning concepts can be used to perform tasks such as edge detection and face recognition. You'll then discover how to develop powerful neural network models on your PC and on various cloud platforms. Finally, you'll learn to perform model optimization methods to deploy models on edge devices for real-time inference. By the end of this book, you'll have a solid understanding of computer vision and be able to confidently develop models to automate tasks.
What you will learn
- Explore methods of feature extraction and image retrieval and visualize different layers of the neural network model
- Use TensorFlow for various visual search methods for real-world scenarios
- Build neural networks or adjust parameters to optimize the performance of models
- Understand TensorFlow DeepLab to perform semantic segmentation on images and DCGAN for image inpainting
- Evaluate your model and optimize and integrate it into your application to operate at scale
- Get up to speed with techniques for performing manual and automated image annotation
Who this book is for
This book is for computer vision professionals, image processing professionals, machine learning engineers and AI developers who have some knowledge of machine learning and deep learning and want to build expert-level computer vision applications. In addition to familiarity with TensorFlow, Python knowledge will be required to get started with this book.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Section 1: Introduction to Computer Vision and Neural Networks
- Understand how image filters transform an image (chapter 1)
- Apply various types of image filters for edge detection (chapter 1)
- Detect simple objects using OpenCV contour detection and Histogram of Oriented Gradients (HOG) (Chapter 1)
- Find the similarity between objects using Scale-invariant feature transform (SIFT), Local Binary Patterns (LBP) pattern matching, and color matching (chapters 1 and 2)
- Face detection using the OpenCV cascade detector (chapter 3)
- Input big data into a neural network from a CSV file list and parse the data to recognize columns, which can then be fed to the neural network as x and y values (chapter 3)
- Facial keypoint and facial expression recognition (chapter 3)
- Develop an annotation file for facial keypoints (chapter 3)
- Input big data into a neural network from files using the Keras data generator method (chapter 4)
- Construct your own neural network and optimize its parameters to improve accuracy (chapter 4)
- Write code to transform an image through different layers of the convolutional neural network (chapter 4)
- Chapter 1, Computer Vision and TensorFlow Fundamentals
- Chapter 2, Content Recognition Using Local Binary Pattern
- Chapter 3, Facial Detection Using OpenCV and CNN
- Chapter 4, Deep Learning on Images
Computer Vision and TensorFlow Fundamentals
- Detecting edges using image hashing and filtering
- Extracting features from an image
- Object detection using Contours and the HOG detector
- An overview of TensorFlow, its ecosystem, and installation
Technical requirements
Detecting edges using image hashing and filtering
- Perpetual hash (phash): A cosine transformation
- Difference hash (dhash): The difference between adjacent pixels
from PIL import Image
import imagehash
import distance
import scipy.spatial
hash1 = imagehash.phash(Image.open(…/car1.png))
hash2 = imagehash.phash(Image.open(…/car2.png))
print hamming_distance(hash1,hash2)
- Using a Bayer filter for color pattern formation
- Creating an image vector
- Transforming the image
- Linear filtering—convolution with kernels
- Mixing Gaussian and Laplacian filters
- Detecting edges in the image
Using a Bayer filter for color pattern formation
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Section 1: Introduction to Computer Vision and Neural Networks
- Computer Vision and TensorFlow Fundamentals
- Content Recognition Using Local Binary Patterns
- Facial Detection Using OpenCV and CNN
- Deep Learning on Images
- Section 2: Advanced Concepts of Computer Vision with TensorFlow
- Neural Network Architecture and Models
- Visual Search Using Transfer Learning
- Object Detection Using YOLO
- Semantic Segmentation and Neural Style Transfer
- Section 3: Advanced Implementation of Computer Vision with TensorFlow
- Action Recognition Using Multitask Deep Learning
- Object Detection Using R-CNN, SSD, and R-FCN
- Section 4: TensorFlow Implementation at the Edge and on the Cloud
- Deep Learning on Edge Devices with CPU/GPU Optimization
- Cloud Computing Platform for Computer Vision
- Other Books You May Enjoy