Book description
Create advanced applications with Python and OpenCV, exploring the potential of facial recognition, machine learning, deep learning, web computing and augmented reality.
Key Features
- Develop your computer vision skills by mastering algorithms in Open Source Computer Vision 4 (OpenCV 4)and Python
- Apply machine learning and deep learning techniques with TensorFlow, Keras, and PyTorch
- Discover the modern design patterns you should avoid when developing efficient computer vision applications
Book Description
OpenCV is considered to be one of the best open source computer vision and machine learning software libraries. It helps developers build complete projects in relation to image processing, motion detection, or image segmentation, among many others. OpenCV for Python enables you to run computer vision algorithms smoothly in real time, combining the best of the OpenCV C++ API and the Python language.
In this book, you'll get started by setting up OpenCV and delving into the key concepts of computer vision. You'll then proceed to study more advanced concepts and discover the full potential of OpenCV. The book will also introduce you to the creation of advanced applications using Python and OpenCV, enabling you to develop applications that include facial recognition, target tracking, or augmented reality. Next, you'll learn machine learning techniques and concepts, understand how to apply them in real-world examples, and also explore their benefits, including real-time data production and faster data processing. You'll also discover how to translate the functionality provided by OpenCV into optimized application code projects using Python bindings. Toward the concluding chapters, you'll explore the application of artificial intelligence and deep learning techniques using the popular Python libraries TensorFlow, and Keras.
By the end of this book, you'll be able to develop advanced computer vision applications to meet your customers' demands.
What you will learn
- Handle files and images, and explore various image processing techniques
- Explore image transformations, including translation, resizing, and cropping
- Gain insights into building histograms
- Brush up on contour detection, filtering, and drawing
- Work with Augmented Reality to build marker-based and markerless applications
- Work with the main machine learning algorithms in OpenCV
- Explore the deep learning Python libraries and OpenCV deep learning capabilities
- Create computer vision and deep learning web applications
Who this book is for
This book is designed for computer vision developers, engineers, and researchers who want to develop modern computer vision applications. Basic experience of OpenCV and Python programming is a must.
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Section 1: Introduction to OpenCV 4 and Python
-
Setting Up OpenCV
- Technical requirements
- Understanding Python
- A theoretical introduction to the OpenCV library
- Installing OpenCV, Python, and other packages
- Installing Python, OpenCV, and other packages with virtualenv
- Python IDEs to create virtual environments with virtualenv
- Anaconda/Miniconda distributions and conda package–and environment-management system
- Packages for scientific computing, data science, machine learning, deep learning, and computer vision
- Jupyter Notebook
- The OpenCV and Python project structure
- Our first Python and OpenCV project
- Summary
- Questions
- Further reading
- Image Basics in OpenCV
- Handling Files and Images
- Constructing Basic Shapes in OpenCV
- Section 2: Image Processing in OpenCV
- Image Processing Techniques
-
Constructing and Building Histograms
- Technical requirements
- A theoretical introduction to histograms
- Grayscale histograms
- Color histograms
- Custom visualizations of histograms
- Comparing OpenCV, NumPy, and Matplotlib histograms
- Histogram equalization
- Contrast Limited Adaptive Histogram Equalization
- Comparing CLAHE and histogram equalization
- Histogram comparison
- Summary
- Questions
- Further reading
- Thresholding Techniques
- Contour Detection, Filtering, and Drawing
- Augmented Reality
- Section 3: Machine Learning and Deep Learning in OpenCV
- Machine Learning with OpenCV
- Face Detection, Tracking, and Recognition
-
Introduction to Deep Learning
- Technical requirements
- Deep learning overview for computer vision tasks
- Deep learning in OpenCV
- The TensorFlow library
- The Keras library
- Summary
- Questions
- Further reading
- Section 4: Mobile and Web Computer Vision
- Mobile and Web Computer Vision with Python and OpenCV
- Assessments
- Other Books You May Enjoy
Product information
- Title: Mastering OpenCV 4 with Python
- Author(s):
- Release date: March 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789344912
You might also like
book
Computer Vision Projects with OpenCV and Python 3
Gain a working knowledge of advanced machine learning and explore Python's powerful tools for extracting data …
book
OpenCV 4 with Python Blueprints - Second Edition
Get to grips with traditional computer vision algorithms and deep learning approaches, and build real-world applications …
book
OpenCV with Python By Example
Build real-world computer vision applications and develop cool demos using OpenCV for Python About This Book …
book
OpenCV 3.x with Python By Example - Second Edition
Learn the techniques for object recognition, 3D reconstruction, stereo imaging, and other computer vision applications using …