Interactive Foreground Extraction using GrabCut Algorithm

Goal In this chapter We will see GrabCut algorithm to extract foreground in images We will create an interactive application for this. Theory GrabCut algorithm was designed by Carsten Rother, Vladimir Kolmogorov & Andrew Blake from Microsoft Research Cambridge, UK. in their paper, “GrabCut”: interactive foreground extraction using iterated graph…

Image Segmentation with Watershed Algorithm

Goal In this chapter, We will learn to use marker-based image segmentation using watershed algorithm We will see: cv2.watershed() Theory Any grayscale image can be viewed as a topographic surface where high intensity denotes peaks and hills while low intensity denotes valleys. You start filling every isolated valleys (local minima)…

Detect circles with Python

Hough Circle Transform Goal In this chapter, We will learn to use Hough Transform to find circles in an image. We will see these functions: cv2.HoughCircles() Theory A circle is represented mathematically as where is the center of the circle, and is the radius of the circle. From equation, we…

Image processing with Python

Changing Colorspaces Goal In this tutorial, you will learn how to convert images from one color-space to another, like BGR Gray, BGR HSV etc. In addition to that, we will create an application which extracts a colored object in a video You will learn following functions : cv2.cvtColor(), cv2.inRange() etc.…

Python For Beginners

Welcome! Are you completely new to programming? If not then we presume you will be looking for information about why and how to get started with Python. Fortunately an experienced programmer in any programming language (whatever it may be) can pick up Python very quickly. It’s also easy for beginners…