# How to categorize the images based on Illumination / shadow?

Input: Cropped face or Non Cropped face images.

Detailed explanation: My project is face authentication. I am using OpenCV face detector to crop face from images. I am using OpenCV implementation of LBP for face recognition. My face recognition system works good when the the test images are not much variant (illumination) w.r.t training images. The constraint is, I don't have many variants during training; so, I need to categorize the images based on light/shadow and need to label each image . So that similarity score threshold value can be set dynamically based on the labels. I am not getting the desired results with the Illumination normalization algorithms (like Difference of Gaussian) and with the static threshold values for all variants of images . So, I need to know how to identify the quality(illumination) of images, to check the possibility of dynamic thresholds.

Any guidance on any of my above said process are appreciated and helpful to me.

-