Ask Your Question

Revision history [back]

Webcam FPS when CascadeClassifier::detectMultiScale and FaceRecognizer executed

I have a project using openCV which involves CascadeClassifier::detectMultiScale and FaceRecognizer .

Is it affected the FPS of my webcam when CascadeClassifier::detectMultiScale and FaceRecognizer are executed ?

I'm using eigenface FaceRecognizer for face recognition and lbp_cascade.xml for face detection,
and my webcam specification is 1280 x 720 HD @ 30 FPS, but when i try to calculate with code the grabbed frames in second, the output says it is just 9 frames/second (FPS). I use cvCaptureFromCAM(int device) and cvQueryFrame(CvCapture* capture) methods for grab the frame from video stream.