Skip to Content
OpenCV with Python Blueprints
book

OpenCV with Python Blueprints

by Michael Beyeler, Michael Beyeler (USD)
October 2015
Intermediate to advanced
230 pages
5h 10m
English
Packt Publishing
Content preview from OpenCV with Python Blueprints

The process flow

Features are extracted, matched, and tracked by the FeatureMatching class, especially by its public match method. However, before we can begin analyzing the incoming video stream, we have some homework to do. It might not be clear right away what some of these things mean (especially for SURF and FLANN), but we will discuss these steps in detail in the following sections. For now, we only have to worry about initialization:

class FeatureMatching:
     def __init__(self, train_image='salinger.jpg'):
  1. This sets up a SURF detector (see the next section for details) with a Hessian threshold between 300 and 500:
    self.min_hessian = 400
    self.SURF = cv2.SURF(self.min_hessian)
  2. We load a template of our object of interest (self.img_obj), or print ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

OpenCV 4 with Python Blueprints - Second Edition

OpenCV 4 with Python Blueprints - Second Edition

Dr. Menua Gevorgyan, Michael Beyeler (USD), Arsen Mamikonyan, Michael Beyeler
OpenCV 3 Computer Vision with Python Cookbook

OpenCV 3 Computer Vision with Python Cookbook

Aleksei Spizhevoi, Aleksandr Rybnikov
OpenCV By Example

OpenCV By Example

Prateek Joshi, David Millán Escrivá, Vinícius G. Mendonça

Publisher Resources

ISBN: 9781785282690Supplemental Content