Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

HAAR Classifier Lighting

Hello,

I am trying to detect faces using a webcam with openCV HAAR classifier. It works very well. However, in some places (ex. a colleague's office), the lighting conditions are intense and the face recognition does not work.

I searched on the internet and I found that I should add: cvtColor(image, frame_gray, CV_BGR2GRAY); equalizeHist(frame_gray, frame_gray);

However, it does not help. Even with these code lines, the algorithm does not recognize faces with these lighting conditions.

Do you have other suggestions ?

Thank you so much,

Alex