Method and device for face inputting

The invention belongs to the field of computer vision technique, and provides a method for face inputting. The method comprises the steps of collecting video frames, forming a video frame queue, carrying out detection on the video frame queue, judging whether the video frame queue contains human faces or not, carrying out matching on the human faces and human faces stored in a human face database if the video frame queue contains human faces, and automatically inputting the human faces into the human face database if the human faces are not stored in the human face database. According to the method for the face inputting, the human faces are detected in the collected video frames, whether the detected human faces are stored in the human face database is judged, and the human faces are input into the human face database if the human faces are not stored in the human face database, automatic increasing of data in the human face database is achieved, and identification and tracking on strange human faces are facilitated.