Text this: Effective preprocessing techniques for improved facial recognition under variable conditions