Face detection is very slow [closed]

asked 2016-01-26 12:10:45 -0600

sarmad gravatar image

Hi

I'm using this code for face detection but I have two problems

  1. Face detection is very slow when I use video file and normal speed using webcam

  2. I want to draw Rectangle around the detected face instead of Ellipse

Thanks for help

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sarmad
close date 2016-01-27 12:07:50.558480

Comments

  1. and 2. are unrelated.
berak gravatar imageberak ( 2016-01-26 12:18:14 -0600 )edit

yes , I know that do you want me to edit it ?

sarmad gravatar imagesarmad ( 2016-01-26 12:21:39 -0600 )edit

naw, just saying..

berak gravatar imageberak ( 2016-01-26 12:26:23 -0600 )edit

For the first point, it should be because the resolution of the video is greater than for your webcam.

For the second point, you could look at the sample facedetect.cpp.

Eduardo gravatar imageEduardo ( 2016-01-27 03:08:41 -0600 )edit

Skip some frames to make a test :¬)

cv_new gravatar imagecv_new ( 2016-01-27 04:16:08 -0600 )edit

With this ? The scale factor can be skip if you detect on plain resolution.

Eduardo gravatar imageEduardo ( 2016-01-27 09:43:05 -0600 )edit