Merge pull request #1973 from ilya-lavrenov:ocl_haar_sample

pull/1971/merge
Andrey Pavlenko 11 years ago committed by OpenCV Buildbot
commit 9b29b127c5
  1. 2
      samples/ocl/facedetect.cpp

@ -196,7 +196,7 @@ static void detectFaces(std::string fileName)
d_img.upload(img); d_img.upload(img);
std::vector<Rect> oclfaces; std::vector<Rect> 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<oclfaces.size(); i++) for(unsigned int i = 0; i<oclfaces.size(); i++)
rectangle(img, Point(oclfaces[i].x, oclfaces[i].y), Point(oclfaces[i].x + oclfaces[i].width, oclfaces[i].y + oclfaces[i].height), colors[i%8], 3); rectangle(img, Point(oclfaces[i].x, oclfaces[i].y), Point(oclfaces[i].x + oclfaces[i].width, oclfaces[i].y + oclfaces[i].height), colors[i%8], 3);

Loading…
Cancel
Save