Image Segmentation is the process of dividing an image into segments or unique areas of interest in an image. Segmentation is done in two main ways:
Image contours are continuous curves that follow the edges along a perceived boundary. Contours also provide a lot of information about the shape of an object boundary.
Edge detection algorithms are often used to detect the boundaries of objects. But, after performing edge detection you'll often be left with sets of edges that highlight not only object boundaries, but also interesting features and line. And to do image segmentation, you want only boundaries that mark distinct areas and objects in an image. See the example below:
Image contouring is great for detecting documents:
The Hough transform is a technique which can be used to isolate features of a particular shape within an image.
In the this exercise, we will see how hough transform is used to detect objects (like a phone) and car lanes.