Skip to Content
Learning OpenCV 3 Computer Vision with Python (Update)
book

Learning OpenCV 3 Computer Vision with Python (Update)

by Joe Minichino, Joseph Howse
September 2015
Intermediate to advanced
266 pages
5h 38m
English
Packt Publishing
Content preview from Learning OpenCV 3 Computer Vision with Python (Update)

Object segmentation using the Watershed and GrabCut algorithms

Calculating a disparity map can be very useful to detect the foreground of an image, but StereoSGBM is not the only algorithm available to accomplish this, and in fact, StereoSGBM is more about gathering 3D information from 2D pictures, than anything else. GrabCut, however, is a perfect tool for this purpose. The GrabCut algorithm follows a precise sequence of steps:

  1. A rectangle including the subject(s) of the picture is defined.
  2. The area lying outside the rectangle is automatically defined as a background.
  3. The data contained in the background is used as a reference to distinguish background areas from foreground areas within the user-defined rectangle.
  4. A Gaussians Mixture Model (GMM
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 3 Computer Vision with Python Cookbook

OpenCV 3 Computer Vision with Python Cookbook

Aleksei Spizhevoi, Aleksandr Rybnikov
OpenCV 4 with Python Blueprints - Second Edition

OpenCV 4 with Python Blueprints - Second Edition

Dr. Menua Gevorgyan, Michael Beyeler (USD), Arsen Mamikonyan, Michael Beyeler

Publisher Resources

ISBN: 9781785283840Supplemental Content