|
|
@ -81,7 +81,7 @@ int main(int , char** ) |
|
|
|
Mat GrayFrame; |
|
|
|
Mat GrayFrame; |
|
|
|
vector<Rect> Faces; |
|
|
|
vector<Rect> Faces; |
|
|
|
|
|
|
|
|
|
|
|
while(true) |
|
|
|
do |
|
|
|
{ |
|
|
|
{ |
|
|
|
VideoStream >> ReferenceFrame; |
|
|
|
VideoStream >> ReferenceFrame; |
|
|
|
cvtColor(ReferenceFrame, GrayFrame, COLOR_RGB2GRAY); |
|
|
|
cvtColor(ReferenceFrame, GrayFrame, COLOR_RGB2GRAY); |
|
|
@ -94,9 +94,7 @@ int main(int , char** ) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
imshow(WindowName, ReferenceFrame); |
|
|
|
imshow(WindowName, ReferenceFrame); |
|
|
|
|
|
|
|
} while (waitKey(30) < 0); |
|
|
|
if (waitKey(30) >= 0) break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Detector.stop(); |
|
|
|
Detector.stop(); |
|
|
|
|
|
|
|
|
|
|
|