I'm trying to figure out the code about face detection. Here is the code that I can not understand:
MatOfRect faces = new MatOfRect();
mJavaDetector.detectMultiScale(mGray, faces, 1.1, 2, 2, // TODO: objdetect.CV_HAAR_SCALE_IMAGE
new Size(mAbsoluteFaceSize, mAbsoluteFaceSize), new Size());
Rect[] facesArray = faces.toArray();
I'm wondering what does "faces" means and why have to turn it into Array by "faces.toArray"? Can anyone help me out? Thanks a lot.