I have been working on Face detection using opencv, C++ Eclipse. I got some problem with a program which is as
Rect faceRect;
// Stores the result of the detection, or -1.
int scaledWidth = 320; // Shrink the image before detection.
detectLargestObject(cameraImg, faceDetector, faceRect, scaledWidth);
if (faceRect.width > 0)
cout << "We detected a face!" << endl;
I don't know what does these parameters indicate in case of "detectLargestObject". Specially, "faceRect". I need some help. Please guide me appropriately as I am new to OpenCV.
the code for the book is here: https://github.com/MasteringOpenCV/code