From 1015c5c24d3695dae8f26925ae1d1fd8402a9a01 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Wed, 11 Dec 2013 15:08:49 +0400 Subject: [PATCH] fixed facedetect sample --- samples/ocl/facedetect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ocl/facedetect.cpp b/samples/ocl/facedetect.cpp index b452ab8d89..fd570b5154 100644 --- a/samples/ocl/facedetect.cpp +++ b/samples/ocl/facedetect.cpp @@ -196,7 +196,7 @@ static void detectFaces(std::string fileName) d_img.upload(img); std::vector oclfaces; - cascade.detectMultiScale(d_img, oclfaces, 1.1, 3, 0|CV_HAAR_SCALE_IMAGE, Size(30, 30), Size(0, 0)); + cascade.detectMultiScale(d_img, oclfaces, 1.1, 3, 0 | CASCADE_SCALE_IMAGE, Size(30, 30), Size(0, 0)); for(unsigned int i = 0; i