From ce6cf47b20bb6bde641ca64d24f39d0d00100126 Mon Sep 17 00:00:00 2001 From: waelkh <waelkhlifi12@gmail.com> Date: Tue, 19 Mar 2024 03:42:24 +0100 Subject: [PATCH] Added README file --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d74910b --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ + +# Access control with facial recognition + +The aim of this work is to create a an access control system using facial recognition. The model used in this project, was trained using triplet loss, specifically with online triplet mining. + + +## Running tests + +The model can be found in the project directory called 'model' + + +The dataset is also included in the project directory path -> test_model\Extracted Faces + +The directory test_model -> dataset contains the pictures of two individuals that will be used in testing. + +test_image_1 -> Person 1 + +test_image_2 -> Person 2 + +To use the model (saved in model), run this line: + +```bash +py use_model.py 'filename' +``` +for example : +```bash +py use_model.py test_image_1.jpg +``` + +This will compare the input image 'test_image_1.jpg' to all images of the two persons in dataset directory. The result is expected to be Person 1. + +To test the model use : +```bash +py test_model.py +``` +## Depenedencies + +```bash + pip install requirements.txt +``` + +## RaspberryPI deployment + +The script 'use_tflite.py' is the script that will run on the RaspberryPI, using the tensorflow lite model. It works in the same was as the use_model.py script. \ No newline at end of file -- GitLab