Project Introduction


Access control management system based on face recognition


(Python+Django+RESTframework+JsonWebToken+Redis+Dlib)

This project is for dormitory access control system management, and additional functions such as dormitory management, water and electricity bill management, online recharge, repair report management, and system logs are added. For details, see the screenshots below.


Django is the backend, H5/CSS/JS is the frontend, MySQL is the backend database, Redis is the cache, and Dlib is the face recognition library.


This project can be used as a personal school graduation design, without considering the production environment, follow-up development is free.

How to eat


1. First download the project source code file (the acquisition method is at the end of this article)

picture

2. Run MySQL and Redis, and configure the database link information in the setting.py file.

  • The MySQL database is developed using 5.7.27, it is recommended to use the same version (should mysqlclient be upwardly compatible
  • The project comes with Redis-x64-3.2.100 for Windows system debugging, which listens to port 127.0.0.1, 6379 by default, and the requirepass is Qq111111

3. Modify the setting.py file and perform the next configuration.

  • SMTP (mailbox SMTP function, used for account login prompt, email sending verification code, etc.)
  • ALiCloud_AFS (Alibaba Cloud AFS human-machine verification, used for front-end login sliding verification)
  • CodePay (code payment, online payment when users recharge their utility bills)
  • QQConnect (QQ interconnection, used for front-end QQ login binding)

4. Generate the data table (use the instructions like a normal Django project)

python manage.py makemigrationspython manage.py migrate

5. Import the initial system setting data

Data file location: /database/system_setting_systemsetting.sql

6. Start the project (use the instructions like a normal Django project)

python manage.py runserver 127.0.0.1:8080

Screenshot of system operation


1. Front-end-back-end [ PC side ]


picture
picture
picture
picture
picture
picture
picture
picture
picture
picture
picture


2. Front-end-front-end [mobile terminal]

picture


picture
picture
picture
picture
picture
picture
picture
picture
picture
picture

3. Front end - camera end

picture


Source file acquisition


Public account Python secondary background reply access control management acquisition

Recommended reading   Click on the title to jump