In this chapter, we introduced how to transform an image into a representation of the data. Canny Edge Detector, Hough transform, and Contours algorithm were implemented in detail, respectively. At last, we can combine all we have learned to detect the edges, lines, circles, triangles, and rectangles in an image. More interesting things are waiting for you to explore. In the following chapter, we will deal with a more difficult problem.