The theory of face recognition is mainly from the idea of feature vectors. The face image is converted into a series of numbers to form a feature vector. For a feature vector of a face image, its content includes various features, such as: face height, face width, average face color, lips width, and nose height. The face-recognition operation is to compare the input of the feature vector of a face image with a large number of feature vectors in a dataset to identify the personal identity.The face recognition system in this paper is mainly implemented in the Python environment. Face generation is achieved by selfie of face. The image is cut to retain the part of the face, and stored in the database. Comparing the face image input with those saved in the dataset, if the similarity value passes the threshold value of true. The program will show the face image identification. Otherwise, the system will display a false message. The face recognition system is completed and the experimental results show the correct face-recognition. Finally the laptop Webcam is used to take the face image, and the result of comparison is also correct.