The first step in our face recognition algorithm is the face detection. We used color segmentation, morphological processing and template matching algorithms for the face detection. If the user takes the photo correctly, we can make the following assumptions: