i want to apply viola jones on video for detection of faces in a certain ROI set by a tracker using camshift.
Asked
Active
Viewed 706 times
-2
-
how is this related to c++ or c? if you are using some specific library mention that. C++ or C doesn't have any concepts you mentioned in the question. – Naveen Feb 20 '12 at 09:46
-
i am using opencv library with microsoft visual studio. – Abdullah x Feb 20 '12 at 09:50
-
The question is on-topic ([this earlier question](http://stackoverflow.com/questions/1707620/viola-jones-face-detection-claims-180k-features) was too), but it is very poorly phrased. – MSalters Feb 20 '12 at 12:52
1 Answers
0
CascadeClassifier haarCascade;
Mat frame;
Rect roi;
Mat roiImg(frame, roi);
vector<Rect> objects;
haarCascade.detectMultiScale(roiImg, objects);

Ben
- 4,486
- 6
- 33
- 48