'haar_cascade.detectMultiScale' taking time for detection

asked 2015-11-04 03:35:50 -0600

lm35 gravatar image

Grabbed Live Image from camera was passed to OpenCV for Detection. But the 'haar_cascade.detectMultiScale' is taking much time and so when the live video displayed in output window lags behind the original. Is there a way to avoid the lag. Tried LBPH instead of 'haar', which showed no improvements. Played with waitkey () value, from 1 to 30, which too was in vain. Is there a way to reduce the lag. Also is there a way to verify, whether the lag is introduced by 'haar_cascade.detectMultiScale' itself or due to some other factor.

edit retag flag offensive close merge delete

Comments

1

try offical face detection demo and for speed up the detection use -scale parameter

sturkmen gravatar imagesturkmen ( 2015-11-04 03:58:52 -0600 )edit

What is your frame resolution?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-11-04 07:21:56 -0600 )edit
sturkmen gravatar imagesturkmen ( 2015-11-06 06:42:32 -0600 )edit