1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Merge pull request #600 from taka-no-me:fix_build_warnings

This commit is contained in:
Andrey Kamaev
2013-03-01 17:09:56 +04:00
committed by OpenCV Buildbot
3 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -116,7 +116,7 @@ int main( int argc, const char** argv )
{
cout << "In capture ..." << endl;
cout << endl << "NOTE: Smile intensity will only be valid after a first smile has been detected" << endl;
for(;;)
{
IplImage* iplImg = cvQueryFrame( capture );
@@ -229,8 +229,8 @@ void detectAndDraw( Mat& img, CascadeClassifier& cascade,
// The number of detected neighbors depends on image size (and also illumination, etc.). The
// following steps use a floating minimum and maximum of neighbors. Intensity thus estimated will be
//accurate only after a first smile has been displayed by the user.
const int smile_neighbors = nestedObjects.size();
//accurate only after a first smile has been displayed by the user.
const int smile_neighbors = (int)nestedObjects.size();
static int max_neighbors=-1;
static int min_neighbors=-1;
if (min_neighbors == -1) min_neighbors = smile_neighbors;