Skip to content

Commit

Permalink
Update 09 - Object Detection.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
SebasOcampoo committed Sep 2, 2015
1 parent 2e1aea0 commit f3ddf37
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/source/09 - Object Detection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ The gui will look something like this one:

Image processing
----------------
First of all we need to add a folder ``resource`` to our project and put the classifiers in it.
In order to use the classifiers we need to load them from the resource folder, so every time that we check one of the two checkboxes we will load the correct classifier.
In order to use the morphological operators and obtain good results we need to process the image and remove the noise, change the image to HSV allows to get the contours of image easily.

- ``Remove noise``
We can remove some noise of the image using the method blur of the Imgproc class and then apply a conversion to
Expand Down Expand Up @@ -125,8 +124,7 @@ In order to use the classifiers we need to load them from the resource folder, s
Morphological Operators
-----------------------
First of all we need to add a folder ``resource`` to our project and put the classifiers in it.
In order to use the classifiers we need to load them from the resource folder, so every time that we check one of the two checkboxes we will load the correct classifier.
First of all we need to define the two matrices of mopholocial operator dilation and erosion then with the methods erode and dilate of the class Imgproc we process the image twice in each operation, the result is the matrix morphOutput that will be the partial output.


.. code-block:: java
Expand All @@ -147,9 +145,9 @@ In order to use the classifiers we need to load them from the resource folder, s
Trackin the Object
Object tracking
------------------
Given a binary image containing one or more closed surfaces, use it as a mask to find and highlight the objects contours.
With the partial output obtained before we can use the method findContours of the class Imgpoc to get a matrix with the mapping of the objects recognized, then we draw the contours of these objects.


.. code-block:: java
Expand Down

0 comments on commit f3ddf37

Please sign in to comment.