
Mastering OpenCV 4 with Python
A practical guide covering topics from image processing, augmented reality to deep learning with OpenCV 4 and Python 3.7
- 532 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Mastering OpenCV 4 with Python
A practical guide covering topics from image processing, augmented reality to deep learning with OpenCV 4 and Python 3.7
About this book
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 and Keras
- 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.
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 OpenCV 4 and Python
- Chapter 1, Setting Up OpenCV
- Chapter 2, Image Basics in OpenCV
- Chapter 3, Handling Files and Images
- Chapter 4, Constructing Basic Shapes in OpenCV
Setting Up OpenCV
- A theoretical introduction to the OpenCV library
- Installing Python OpenCV and other packages
- Running samples, documentation, help, and updates
- Python and OpenCV project structure
- First Python and OpenCV project
Technical requirements
- Code testing specifications
- Hardware specifications
- Related books and products
Code testing specifications
- Chapter 1, Setting Up OpenCV: opencv-contrib-python
- Chapter 2, Image Basics in OpenCV: opencv-contrib-python and matplotlib
- Chapter 3, Handling Files and Images: opencv-contrib-python and matplotlib
- Chapter 4, Constructing Basic Shapes in OpenCV: opencv-contrib-python and matplotlib
- Chapter 5, Image Processing Techniques: opencv-contrib-python and matplotlib
- Chapter 6, Constructing and Building Histograms: opencv-contrib-python and matplotlib
- Chapter 7, Thresholding Techniques: opencv-contrib-python, matplotlib, scikit-image, and scipy
- Chapter 8, Contours Detection, Filtering, and Drawing: opencv-contrib-python and matplotlib
- Chapter 9, Augmented Reality: opencv-contrib-python and matplotlib
- Chapter 10, Machine Learning with OpenCV: opencv-contrib-python and matplotlib
- Chapter 11, Face Detection, Tracking, and Recognition: opencv-contrib-python, matplotlib, dlib, face-recognition, cvlib, requests, progressbar, keras, and tensorflow
- Chapter 12, Introduction to Deep Learning: opencv-contrib-python, matplotlib, tensorflow, and keras
- Chapter 13, Mobile and Web Computer Vision with Python and OpenCV: opencv-contrib-python, matplotlib, flask, tensorflow, keras, requests, and pillow
- Install opencv-contrib-python:
pip install opencv-contrib-python==4.0.0.21
- Install matplotlib:
pip install matplo...
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Section 1: Introduction to OpenCV 4 and Python
- Setting Up OpenCV
- 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
- 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
- Section 4: Mobile and Web Computer Vision
- Mobile and Web Computer Vision with Python and OpenCV
- Assessments
- Other Books You May Enjoy