title: object detection android opencv
body: <p>After taking a picture with an android phone I want to identify an object in the picture by clicking into it for example. Possible objects in most cases:<br>
  1. Ruler<br>
  2. Person<br>
  3. Pencil<br>
  I am using android prebuilt-opencv version 2.3.1 and I tried to click into the ruler object and floodfill it to mark it, but if the contours are not closed the whole picture will be filled.<br>
  a) I also tried to click into ruler object and go south, north, east, west to look where the edges are and collect these coordinates, but I ran into heavy problems there (don´t ask).    </p>
  
  <p>Questions:<br>
  1. Is it possible to close the contours somehow to just fill the wanted object?<br>
  2. What I ACTUALLY want to find are the coordinates of the bottom AND the height of (e.g.) the ruler.<br>
  ANY other solutions are appreciated. How would you realize it?  </p>
  
  <p>Update:I fixed the problem with a) and use this approach at the moment (not happy about it). I also tried Entreco ´s approach, but seem not to give the wanted solution by now.</p>