New thresholds better detection with different ilumination scenarios