Neural Networks and 3D Edge Genetic Template Matching for Real-Time Face Detection and Recognition