From 58aac7ea98dcc01b26d6304e8c8712fb83fa9008 Mon Sep 17 00:00:00 2001 From: Kirill Kornyakov Date: Fri, 15 Jun 2012 07:07:29 +0000 Subject: [PATCH] fixes #2044 --- samples/cpp/tutorial_code/objectDetection/objectDetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/tutorial_code/objectDetection/objectDetection.cpp b/samples/cpp/tutorial_code/objectDetection/objectDetection.cpp index ee29965c5..fadc136fb 100644 --- a/samples/cpp/tutorial_code/objectDetection/objectDetection.cpp +++ b/samples/cpp/tutorial_code/objectDetection/objectDetection.cpp @@ -86,7 +86,7 @@ void detectAndDisplay( Mat frame ) for( int j = 0; j < eyes.size(); j++ ) { Point center( faces[i].x + eyes[j].x + eyes[j].width*0.5, faces[i].y + eyes[j].y + eyes[j].height*0.5 ); - int radius = cvRound( (eyes[j].width + eyes[i].height)*0.25 ); + int radius = cvRound( (eyes[j].width + eyes[j].height)*0.25 ); circle( frame, center, radius, Scalar( 255, 0, 0 ), 3, 8, 0 ); } }