title: OpenCV Android - How to draw a circle/rectangle around contours?
body: <p>I am new to openCV and therefor I have a few problems.</p>
  
  <p>One question is how I can get the coordinates of contours to draw for example a circle around it.</p>
  
  <p>My code so far looks like this:</p>
  
  <pre><code>List&lt;MatOfPoint&gt; contours = mDetector.getContours();
  Imgproc.drawContours(mRgba, contours, -1, CONTOUR_COLOR, -1);
  &lt;&lt;code that I need&gt;&gt;
  Core.circle(mRgba, new Point(150.0,150.0), 100, CONTOUR_COLOR, 5);
  </code></pre>
  
  <p>the contours are "extracted" and drawn on the surface the testcircle also, but how can I get the coordinates(bounds) from the contours to draw a circle around each of the contours.</p>
  
  <p>thank you</p>