title: Need to Draw a rectangle in counter area with android opencv
body: <p>i Need to Draw a rectangle in counter area with android opencv
  here is my code but i'm having error in Core.rectangle part or is there any easy way to draw it?</p>
  
  <pre><code>MatOfPoint2f         approxCurve = new MatOfPoint2f();  
  List&lt;Rect&gt; ListOfRect = new ArrayList&lt;Rect&gt;();
  for (int i=0; i&lt;contours.size(); i++){
     MatOfPoint2f contour2f = new MatOfPoint2f( contours.get(i).toArray() );
     double approxDistance = Imgproc.arcLength(contour2f, true)*0.02;
     Imgproc.approxPolyDP(contour2f, approxCurve, approxDistance, true);
     MatOfPoint points = new MatOfPoint( approxCurve.toArray() ); 
     Rect rect = Imgproc.boundingRect(points);
  
     //error part
     Core.rectangle(img, new Point(rect.x,rect.y), new Point(rect.x+rect.width,rect.y+rect.height), new Scalar( 0, 0, 255 ),0,8, 0);      
  }
  
  error: The method rectangle(org.opencv.core.Mat, org.opencv.core.Point, org.opencv.core.Point, org.opencv.core.Scalar, int) in the type Core is not applicable for the arguments (org.opencv.core.Mat, android.graphics.Point, android.graphics.Point, org.opencv.core.Scalar, int)
  </code></pre>