Book Image

Computer Vision with Python 3

By : Saurabh Kapur
Book Image

Computer Vision with Python 3

By: Saurabh Kapur

Overview of this book

<p>This book is a thorough guide for developers who want to get started with building computer vision applications using Python 3. The book is divided into five sections: The Fundamentals of Image Processing, Applied Computer Vision, Making Applications Smarter,Extending your Capabilities using OpenCV, and Getting Hands on. Throughout this book, three image processing libraries Pillow, Scikit-Image, and OpenCV will be used to implement different computer vision algorithms.</p> <p>The book aims to equip readers to build Computer Vision applications that are capable of working in real-world scenarios effectively. Some of the applications that we will look at in the book are Optical Character Recognition, Object Tracking and building a Computer Vision as a Service platform that works over the internet.</p>
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
7
Introduction to Computer Vision using OpenCV

Installation


In this section, we will cover the steps to install OpenCV in various operating systems.

macOS

The following steps will install OpenCV on macOS:

  1. The first step is to install Xcode on your system. You can install Xcode from the App Store for free. Install the open Terminal and execute this command to accept the license:
        sudo xcodebuild –license
  1. Now, type agree at the end of the document. Then, you need to install command-line tools using Xcode by executing this command:
        sudo xcode-select –install
  1. The next step is to install OpenCV using the homebrew command. To install using homebrew, execute these commands:
        brew tap homebrew/science
        brew install opencv3 --with-contrib --with-python3 --without-python
  1. Now, the final step is to link OpenCV and Python. For doing this, first you need to change the filename in /usr/local/opt/opencv3/lib/python3.5/site-packages/ from cv2.cpython-35m-darwin.so to cv2.so by executing these commands:
        cd/usr/local/opt/opencv3...