Finding contours in your image {#tutorial_find_contours}
==============================

Goal
----

In this tutorial you will learn how to:

-   Use the OpenCV function @ref cv::findContours
-   Use the OpenCV function @ref cv::drawContours

Theory
------

Code
----

This tutorial code's is shown lines below. You can also download it from
[here](https://github.com/opencv/opencv/tree/master/samples/cpp/tutorial_code/ShapeDescriptors/findContours_demo.cpp)
@include samples/cpp/tutorial_code/ShapeDescriptors/findContours_demo.cpp

Explanation
-----------

Result
------

Here it is:
![](images/Find_Contours_Original_Image.jpg)
![](images/Find_Contours_Result.jpg)
