Ask Your Question
0

The Haar face detection is very slow?

asked 2012-11-16 23:19:18 -0600

superwavelet gravatar image

updated 2012-11-16 23:19:51 -0600

Hi,

I have tried to use haarcascade_frontalface_alt.xml and cvHaarDetectObjects for web camera face tracking.

However, the speed is very slow.

How to speed up the face tracking? Use adaboost with the combination of Haar?

Thanks a lot

edit retag flag offensive close merge delete

Comments

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-11-17 01:18:23 -0600

updated 2012-11-17 11:38:01 -0600

hi. You can use opencv_traincascade instead of opencv_haartraining. opencv_traincascade supports both Haar & LBP features.LPB is several time faster than Haar. In addition opencv_traincascade can use TBB in multi core system. In the first you have to down sample original image. You can set four parameters in haar cascade in OpenCV that affects the speed 1- Scale Factor: how much the image size is reduced at each image scale (The speed-accuracy trade-off) 2- Min Neighbor 3- min Size (minimum size of face) 4 -max Size (minimum size of face)

edit flag offensive delete link more
0

answered 2012-11-21 01:37:40 -0600

SR gravatar image

Try reducing the image size.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-16 23:19:18 -0600

Seen: 4,186 times

Last updated: Nov 21 '12