projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5cdc03
)
fixed facedetect sample
author
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Wed, 11 Dec 2013 11:08:49 +0000
(15:08 +0400)
committer
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Wed, 11 Dec 2013 11:08:49 +0000
(15:08 +0400)
samples/ocl/facedetect.cpp
patch
|
blob
|
history
diff --git
a/samples/ocl/facedetect.cpp
b/samples/ocl/facedetect.cpp
index
b452ab8
..
fd570b5
100644
(file)
--- 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<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++)
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);