Webcam FPS when CascadeClassifier::detectMultiScale and FaceRecognizer executed

asked 2017-05-16 22:10:27 -0600

williamluisan gravatar image

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.

edit retag flag offensive close merge delete

Comments

"I use cvCaptureFromCAM(int device) and cvQueryFrame(CvCapture* capture) methods " -- please don't !

the deprecated c-api is no more maintained, and might break any minute. please use cv::Mat and cv::VideoCapture

berak gravatar imageberak ( 2017-05-17 00:14:24 -0600 )edit