views:

224

answers:

2

Hello,

I am working for a project at school regarding face recognition, based on a technique described by Viola and Jones 2001/2004.

I've read that the OpenCV has an implementation of this algorithm, and it works very good.

I was wondering if you have any advices regarding what techniques (pre-processing) to apply to the images before testing the existence of a face (eg. histogram equalization) ?

+1  A: 

I basically used the code from this sample program from the OpenCV page and it worked very well for my masters thesis project. If you get bad results or your lighting is strange you can try a histogram equalization.

Janusz
Thank you for your comment. I've managed to create my Viola Jones program using OpenCV. It works well (except it never recognize Obama :)) ). I will try to improve my working code by applying a histogram equalization. Thank you for your advice!
Andrei Ciobanu
+1  A: 

Hi Andrei,

with a friend I did something similar too for an university project, and especially on low resolution video sequences it really helped to upsample the frame, doubling its size. It was my friends' idea, who had previously taken an image processing class. Although equivalent, things like decreasing initial scan window size, horizontal and vertical steps didn't produce the same result. In other words it may be better to work on larger images with larger scan windows than on smaller with smaller scan windows. Don't know exactly why.

Bye ;-)

damix911
@damix911 Thanks for your comment, I've finished the project, but I'll try out of curiosity :).
Andrei Ciobanu