In this chapter, we have reviewed the main functionality OpenCV provides in connection with contours. Additionally, we have also coded some useful functions when comparing and describing contours. Moreover, we have also provided some interesting functionality that can be helpful when debugging your code. In this sense, functions for both creating reduced contours and creating images with simple shapes are provided. With this chapter we have finished four chapters related to image processing techniques—Chapter 5, Image Processing Techniques, reviewed key points in image processing; Chapter 6, Constructing and Building Histograms, introduced histograms; Chapter 7, Thresholding Techniques, covered thresholding techniques; and finally, in this chapter, we have explained how to deal with contours.
In the next chapter, we are going to supply an introduction to augmented reality, which is one of the hottest trends at present and can be defined as an improved version of reality, where the view of the real world is enhanced with superimposed computer-generated elements.