Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

'haar_cascade.detectMultiScale' taking time for detection

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.