The requirements needed for this project are as follows :
-
Python 3.3+
-
Linux, Windows, MacOS
-
Django
-
Latest version of pip
Then you are required to install the following python module (Make sure you are using the latest version of pip):
pip3 install django
pip3 install opencv-python
pip3 install Pillow
pip3 install face_recognition
Currently the packages for face_recognition are not fully supported on Windows, to get around this issue you must follows the instructions below.
-
Navigate to directory
$ cd \facial-recognition\facialrecognition
-
Make migrations of the required models and tables needed to run the program.
$ python manage.py makemigrations
-
Perform Migrations.
$ python manage.py migrate
-
Create a super user to access administrator controls and dashboard.
$ python manage.py createsuperuser
-
Run the program.
$ python manage.py runserver
-
Make sure to navigate in your browser to 'http://localhost:8000/' to view the application.
-
To access the admin type the following into the browser while the server is running - 'http://localhost:8000/admin'. This page will display the database and allow the admin to edit user's accounts.
-
Press
CTRL-C
to stop the process.