frontlit=((brightness   of   face   ROI)/(frame   brightness))>threshbacklit=((brightness   of   face   ROI)/(frame   brightness))≤thresh