1. Function overview
The software realizes the face recognition access control function, uses the Raspberry Pi as the terminal processing, and uses OpenCV to recognize the face, so as to achieve the purpose of opening the door with a specific face. It is mainly divided into three functions: administrator login, face input, and face recognition. The administrator enters the user name and password to log in to the management interface, and enters the face in the management interface. The input of the face is mainly for face detection and face capture. , Train the face, and finally realize the function of opening the door through face recognition.
Download address: Python face recognition access control management system source code, based on OpenCV+PyQt5, with a graphical interface
2. Development tools
The development tools use Python2.7 as the development language, OpenCV3.4.0 as the image processing library, PyQt5 as the interface display tool, and use the Geany editor that comes with the Raspberry Pi.
Note: The OpenCV environment and PyQt5 were originally built according to python3.5. Halfway through the development, it was found that the version of python2.7 was used...but the final effect is still out.
3. Operating environment
Hardware: Raspberry Pi 3B+
Mirror system: 2019-04-08-raspbian-stretch-full.img
Software: python2.7+OpenCV3.4.0+PyQt5
HDMI display: 10.1 inches, resolution 1280*800
4. User Manual
1. System main interface
Start the Raspberry Pi, you can see the main interface, as follows:
The main interface is the words "Welcome to use the face recognition access control system" and two function buttons for ordinary users and administrators. Click to enter the corresponding function interface.
2. Login interface
Click the administrator button on the main interface to enter the administrator login interface, enter the corresponding account number and password and click login to enter the administrator management interface. The default initial account is 1 and the password is 1. Click Return to return to the main interface.
3. Face registration interface
3.1 Face Detection
In the face recording interface, on the left is the camera video acquisition interface, which can display video images on the interface and detect faces, detect all faces in the image, and frame them with rectangles.
3.2 Face capture and training
In the face entry interface, the right side is the part that the administrator needs to operate. After the entry personnel aim at the camera, the administrator enters the corresponding ID, clicks to start entry, and waits for the progress bar to complete the face entry. In the process, the two processes of face entry and face training are completed. When the face is captured, a folder will be automatically created in the program directory to save 60 face pictures, and the face training will read the captured face image for recognition. training, and save the training data in files under the program directory.
4. Face recognition door opening function
Click to return to the main interface, click on the common user to enter the normal user interface, and the person to be identified is aimed at the camera, the person to be identified can be identified, and the ID will be displayed, and there will be relevant prompt information on the right, and the identity authentication has become a function to control the steering gear open the door.
Download address: Python face recognition access control management system source code, based on OpenCV+PyQt5, with a graphical interface