I Dont want to deetct all the faces in the video, I tried removing the for, it doesn't identify anything. I use following code in Android,
Rect[] facesArray = faces.toArray(); for (int i = 0; i < facesArray.length; i++) Core.rectangle(mRgba, facesArray[i].tl(), facesArray[i].br(),FACE_RECT_COLOR, 3);
But I want to detect only one, how can I convert facesArray so that I can use tl() and br() methods for rectangle() method.