Face recognition with perspective transformation