* @param maxSize
* @return
* An array of java.awt.Rectangle objects with the location, width, and height of each detected object.
*/
public Rectangle[] detect(double scaleFactor , int minNeighbors , int flags, int minSize , int maxSize){
Size minS = new Size(minSize, minSize);
Size maxS = new Size(maxSize, maxSize);
MatOfRect detections = new MatOfRect();
classifier.detectMultiScale(getCurrentMat(), detections, scaleFactor, minNeighbors, flags, minS, maxS );
return OpenCV.toProcessing(detections.toArray());